[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/32: gnu: Add rust-chacha20-0.9.
From: |
guix-commits |
Subject: |
21/32: gnu: Add rust-chacha20-0.9. |
Date: |
Thu, 18 Jan 2024 04:27:45 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 4d5ac9d79b871552e2e83823a1c0f5d686c09e89
Author: Wilko Meyer <w@wmeyer.eu>
AuthorDate: Mon Jan 8 02:52:03 2024 +0100
gnu: Add rust-chacha20-0.9.
* gnu/packages/crates-io.scm (rust-chacha20-0.9): New variable.
(rust-chacha20-0.8): Inherit from rust-chacha20-0.9.
Change-Id: Ib23293e910769bebd97ce1c04dbb4fd88e3b78db
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++-----------
1 file changed, 30 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4b84db7436..00a9f9eb22 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11093,8 +11093,37 @@ chain, the first matching branch is the item that gets
emitted.")
(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
+ `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-cipher" ,rust-cipher-0.4)
+ ("rust-cpufeatures" ,rust-cpufeatures-0.2))
+ #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4)
+ ("rust-hex-literal"
,rust-hex-literal-0.3))))
+ (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
@@ -11109,7 +11138,6 @@ chain, the first matching branch is the item that gets
emitted.")
'(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)
@@ -11119,16 +11147,7 @@ chain, the first matching branch is the item that gets
emitted.")
("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
- 12/32: gnu: Add rust-tree-magic-db-3., (continued)
- 12/32: gnu: Add rust-tree-magic-db-3., guix-commits, 2024/01/18
- 15/32: gnu: Add rust-asn1-rs-0.3., guix-commits, 2024/01/18
- 11/32: gnu: Add rust-wl-clipboard-rs-0.7., guix-commits, 2024/01/18
- 14/32: gnu: rust-universal-hash-0.5: Update to 0.5.1., guix-commits, 2024/01/18
- 06/32: gnu: Add rust-lru-0.12., guix-commits, 2024/01/18
- 13/32: gnu: Add rust-tree-magic-mini-3., guix-commits, 2024/01/18
- 17/32: gnu: Add rust-oid-registry-0.4., guix-commits, 2024/01/18
- 18/32: gnu: Add rust-oid-registry-0.3., guix-commits, 2024/01/18
- 23/32: gnu: Add rust-atomic-0.6., guix-commits, 2024/01/18
- 26/32: gnu: Add rust-ipnetwork-0.20., guix-commits, 2024/01/18
- 21/32: gnu: Add rust-chacha20-0.9.,
guix-commits <=
- 22/32: gnu: Add rust-atoi-2., guix-commits, 2024/01/18
- 28/32: gnu: Add rust-bigdecimal-0.4., guix-commits, 2024/01/18
- 29/32: gnu: rust-siphasher-0.3: Update to 0.3.11., guix-commits, 2024/01/18
- 30/32: gnu: Add rust-borsh-1., guix-commits, 2024/01/18
- 19/32: gnu: Add rust-libsqlite3-sys-0.27., guix-commits, 2024/01/18
- 24/32: gnu: Add rust-atomic-write-file-0.1., guix-commits, 2024/01/18
- 16/32: gnu: Add rust-asn1-rs-derive-0.1., guix-commits, 2024/01/18
- 25/32: gnu: Add rust-urlencoding-2., guix-commits, 2024/01/18
- 27/32: gnu: Add rust-mac-address-1., guix-commits, 2024/01/18
- 20/32: gnu: Add rust-webpki-roots-0.24., guix-commits, 2024/01/18