diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4221ba4599..3c59bb1503 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -30015,6 +30015,32 @@ (define-public rust-zbase32-0.1 (description "This package provides an implementation of zbase32.") (license license:lgpl3+))) +(define-public rust-zeroize-1 + (package + (name "rust-zeroize") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "zeroize" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1f5547q8l8bpi16yy6lix2gl9rf1qz45lj06bq7wjk525gnw5fiw")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ;2 doc tests fail + #:cargo-inputs + (("rust-zeroize-derive" ,rust-zeroize-derive-1)))) + (home-page "https://github.com/iqlusioninc/crates/") + (synopsis "Securely clear secrets from memory") + (description + "Zeroize securely clears secrets from memory with a simple trait built on +stable Rust primitives, which guarantee memory is zeroed using an operation +will not be ``optimized away'' by the compiler. It uses a portable pure Rust +implementation that works everywhere, even WASM!") + (license (list license:asl2.0 license:expat)))) + (define-public rust-zeroize-derive-1 (package (name "rust-zeroize-derive")