[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/68: gnu: Add rust-x25519-dalek-2.
From: |
guix-commits |
Subject: |
16/68: gnu: Add rust-x25519-dalek-2. |
Date: |
Wed, 20 Mar 2024 11:24:26 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit d42ec62e8d9f7579bd3b8fe6b81917691a2db0b0
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:08:54 2024 +0100
gnu: Add rust-x25519-dalek-2.
* gnu/packages/crates-crypto.scm (rust-x25519-dalek-2): Add variable.
(rust-x25519-dalek-1): Inherit from rust-x25519-dalek-2.
Change-Id: Iff7bd2ed16e99849d57ba6eacde4d361f5976674
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-crypto.scm | 45 ++++++++++++++++++++++++++++++------------
1 file changed, 32 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 0fa23c5717..8282e72298 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -6216,8 +6216,37 @@ One-Time Password library.")
(("rust-generic-array" ,rust-generic-array-0.12)
("rust-subtle" ,rust-subtle-2))))))
+(define-public rust-x25519-dalek-2
+ (package
+ (name "rust-x25519-dalek")
+ (version "2.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "x25519-dalek" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0xyjgqpsa0q6pprakdp58q1hy45rf8wnqqscgzx0gyw13hr6ir67"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-curve25519-dalek" ,rust-curve25519-dalek-4)
+ ("rust-rand-core" ,rust-rand-core-0.6)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1)
+ ("rust-criterion" ,rust-criterion-0.5)
+ ("rust-rand-core" ,rust-rand-core-0.6))))
+ (home-page "https://doc.dalek.rs/x25519_dalek")
+ (synopsis "X25519 elliptic curve Diffie-Hellman key exchange")
+ (description
+ "This crate provides a Rust implementation of x25519 elliptic curve
+Diffie-Hellman key exchange, with curve operations provided by
+@code{curve25519-dalek}.")
+ (license license:bsd-3)))
+
(define-public rust-x25519-dalek-1
(package
+ (inherit rust-x25519-dalek-2)
(name "rust-x25519-dalek")
(version "1.2.0")
(source
@@ -6228,25 +6257,15 @@ One-Time Password library.")
(sha256
(base32 "0xz0m1pczss9r25d1r52420dl2picdypbcn5ycmlwssp9awvd4i3"))
(modules '((guix build utils)))
- (snippet
- '(begin
- (substitute* "Cargo.toml"
- (("version = \"=1.3\"") "version = \"^1.3\""))))))
- (build-system cargo-build-system)
+ (snippet '(substitute* "Cargo.toml"
+ (("version = \"=1.3\"") "version = \"^1.3\"")))))
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-curve25519-dalek" ,rust-curve25519-dalek-3)
("rust-rand-core" ,rust-rand-core-0.5)
("rust-serde" ,rust-serde-1)
- ("rust-zeroize" ,rust-zeroize-1))))
- (home-page "https://dalek.rs/")
- (synopsis "X25519 elliptic curve Diffie-Hellman key exchange")
- (description
- "This crate provides a pure-Rust implementation of x25519 elliptic curve
-Diffie-Hellman key exchange, with curve operations provided by
-@code{curve25519-dalek}.")
- (license license:bsd-3)))
+ ("rust-zeroize" ,rust-zeroize-1))))))
(define-public rust-x25519-dalek-ng-1
(package
- 01/68: gnu: Add rust-cargo-toml-0.19., (continued)
- 01/68: gnu: Add rust-cargo-toml-0.19., guix-commits, 2024/03/20
- 02/68: gnu: cargo-machete: Update to 0.6.1., guix-commits, 2024/03/20
- 05/68: gnu: rust-cssparser-macros-0.6: Update to 0.6.1., guix-commits, 2024/03/20
- 07/68: gnu: Add rust-mio-aio-0.8., guix-commits, 2024/03/20
- 10/68: gnu: Add rust-curve25519-dalek-derive-0.1., guix-commits, 2024/03/20
- 12/68: gnu: Add rust-fiat-crypto-0.2., guix-commits, 2024/03/20
- 08/68: gnu: rust-tokio-1: Update to 1.36.0., guix-commits, 2024/03/20
- 17/68: gnu: Add rust-ed25519-dalek-2., guix-commits, 2024/03/20
- 09/68: gnu: agate: Update to 3.3.5., guix-commits, 2024/03/20
- 15/68: gnu: Add rust-ring-compat-0.8., guix-commits, 2024/03/20
- 16/68: gnu: Add rust-x25519-dalek-2.,
guix-commits <=
- 04/68: gnu: Add rust-cssparser-0.33., guix-commits, 2024/03/20
- 11/68: gnu: Move rust-fiat-crypto-0.1., guix-commits, 2024/03/20
- 14/68: gnu: Add rust-curve25519-dalek-4., guix-commits, 2024/03/20
- 18/68: gnu: Add rust-ed25519-2., guix-commits, 2024/03/20
- 13/68: gnu: Add rust-platforms-3., guix-commits, 2024/03/20
- 19/68: gnu: Add rust-strobe-rs-0.8., guix-commits, 2024/03/20
- 20/68: gnu: Add rust-strobe-rs-0.5., guix-commits, 2024/03/20
- 21/68: gnu: Add rust-merlin-3., guix-commits, 2024/03/20
- 22/68: gnu: rust-integer-encoding-3: Update to 3.0.4., guix-commits, 2024/03/20
- 25/68: gnu: Add rust-ordered-multimap-0.4., guix-commits, 2024/03/20