[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68312] [PATCH 026/156] gnu: Add rust-chacha20-0.9.
From: |
Wilko Meyer |
Subject: |
[bug#68312] [PATCH 026/156] gnu: Add rust-chacha20-0.9. |
Date: |
Mon, 8 Jan 2024 02:52:03 +0100 |
* gnu/packages/crates-io.scm (rust-chacha20-0.9): New variable.
(rust-chacha20-0.8): Inherit from rust-chacha20-0.9.
Change-Id: Ib23293e910769bebd97ce1c04dbb4fd88e3b78db
---
gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++-----------
1 file changed, 29 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4fc06fcc552..df5441e2ede 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11411,8 +11411,36 @@ (define-public rust-chan-0.1
(description "DEPRECATED. Use crossbeam-channel instead.")
(license (list license:unlicense license:expat))))
+(define-public rust-chacha20-0.9
+ (package
+ (name "rust-chacha20")
+ (version "0.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "chacha20" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0678wipx6kghp71hpzhl2qvx80q7caz3vm8vsvd07b1fpms3yqf3"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-cipher" ,rust-cipher-0.4)
+ ("rust-cpufeatures" ,rust-cpufeatures-0.2))))
+ (home-page "https://github.com/RustCrypto/stream-ciphers")
+ (synopsis "ChaCha20 stream cipher implemented in pure Rust")
+ (description
+ "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using
traits
+from the RustCrypto @code{cipher} crate, with optional architecture-specific
+hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8,
ChaCha12,
+XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional
+@code{rand_core-compatible} RNGs based on those ciphers.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-chacha20-0.8
(package
+ (inherit rust-chacha20-0.9)
(name "rust-chacha20")
(version "0.8.1")
(source
@@ -11427,7 +11455,6 @@ (define-public rust-chacha20-0.8
'(begin
(substitute* "Cargo.toml"
(("version = \">=1, <1.5\"") "version = \"^1\""))))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-cfg-if" ,rust-cfg-if-1)
@@ -11437,16 +11464,7 @@ (define-public rust-chacha20-0.8
("rust-zeroize" ,rust-zeroize-1))
#:cargo-development-inputs
(("rust-cipher" ,rust-cipher-0.3)
- ("rust-hex-literal" ,rust-hex-literal-0.2))))
- (home-page "https://github.com/RustCrypto/stream-ciphers")
- (synopsis "ChaCha20 stream cipher implemented in pure Rust")
- (description
- "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using
traits
-from the RustCrypto @code{cipher} crate, with optional architecture-specific
-hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8,
ChaCha12,
-XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional
-@code{rand_core-compatible} RNGs based on those ciphers.")
- (license (list license:asl2.0 license:expat))))
+ ("rust-hex-literal" ,rust-hex-literal-0.2))))))
(define-public rust-chacha20poly1305-0.9
(package
--
2.41.0
- [bug#68312] [PATCH 023/156] gnu: Add rust-bindgen-0.69., (continued)
- [bug#68312] [PATCH 023/156] gnu: Add rust-bindgen-0.69., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 015/156] gnu: Add rust-atuin-server-postgres-17., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 018/156] gnu: Add rust-axum-0.6., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 014/156] gnu: Add rust-atuin-server-17., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 020/156] gnu: Add rust-base16ct-0.1., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 022/156] gnu: Add rust-binascii-0.1., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 030/156] gnu: Add rust-cookie-0.18., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 034/156] gnu: Add rust-csscolorparser-0.6., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 032/156] gnu: Add rust-crypto-secretbox-0.1., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 045/156] gnu: Add rust-diesel-derives-2., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 026/156] gnu: Add rust-chacha20-0.9.,
Wilko Meyer <=
- [bug#68312] [PATCH 037/156] gnu: Add rust-deltae-0.3., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 038/156] gnu: Add rust-rust-decimal-1., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 039/156] gnu: Add rust-der-parser-7., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 044/156] gnu: Add rust-diesel-2., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 047/156] gnu: rust-directories-5: Update to 5.0.1., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 042/156] gnu: Add rust-devise-codegen-0.4., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 017/156] gnu: Add rust-axum-core-0.3., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 048/156] gnu: Add rust-dlv-list-0.3., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 041/156] gnu: Add rust-devise-0.4., Wilko Meyer, 2024/01/07
- [bug#68312] [PATCH 049/156] gnu: Add rust-ecdsa-0.14., Wilko Meyer, 2024/01/07