summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-07-13 12:30:53 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-07-13 12:30:53 +0200
commit1cc3a0451e3e96aa2ca67742c40d158b6137872f (patch)
tree8684a061d7f182413a0a7769ecbc331e39fcd916
parent83683001aff340e872a96247cbf8c783bdf85d6d (diff)
gnu: Add rust-zeroize-1.
* gnu/packages/crates-io.scm (rust-zeroize-1): New variable.
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
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 @@ to XDG Base Directory specification")
(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")