diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 817328bfea..e728bf479c 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3302,3 +3302,97 @@ (define-public rust-sha3-0.9 #:cargo-development-inputs (("rust-digest" ,rust-digest-0.9) ("rust-hex-literal" ,rust-hex-literal-0.2)))))) + +(define-public rust-signature-2 + (package + (name "rust-signature") + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (crate-uri "signature" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00457czdia5gvll3a1vzf2ffsdpgcz2dz0h56z7zk28nsbp8h5sy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-signature-derive" ,rust-signature-derive-2)) + #:cargo-development-inputs + (("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-sha2" ,rust-sha2-0.10)))) + (home-page "https://github.com/RustCrypto/traits/tree/master/signature") + (synopsis + "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)") + (description + "This package contains traits which provide generic, object-safe APIs +for generating and verifying digital signatures.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-signature-1 + (package + (inherit rust-signature-2) + (name "rust-signature") + (version "1.6.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "signature" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0z3xg405pg827g6hfdprnszsdqkkbrsfx7f1dl04nv9g7cxks8vl")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-signature-derive" ,rust-signature-derive-1)))))) + +(define-public rust-signature-derive-2 + (package + (name "rust-signature-derive") + (version "2.0.1") + (source (origin + (method url-fetch) + (uri (crate-uri "signature_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1z0mjjg3fpj08kc3nkax4lczgp7sfzbcm8q2qgim865510wkgpxc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page + "https://github.com/RustCrypto/traits/tree/master/signature/derive") + (synopsis "Custom derive support for the 'signature' crate") + (description "This package provides proc macros used by the signature +crate. + +It's not intended to be used directly. See the signature crate's documentation +for additional details.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-signature-derive-1 + (package + (inherit rust-signature-derive-2) + (name "rust-signature-derive") + (version "1.0.0-pre.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "signature_derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03wj342zvljknqwg3qbc9acrcsrzhdp1d2d6pfrh4p1b087k3rln")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1) + ("rust-synstructure" ,rust-synstructure-0.12)))))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 414658a963..b73dcbed5e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -64141,100 +64141,6 @@ (define-public rust-signal-hook-registry-1 (description "This package is a backend crate for @code{signal-hook}.") (license (list license:asl2.0 license:expat)))) -(define-public rust-signature-2 - (package - (name "rust-signature") - (version "2.1.0") - (source (origin - (method url-fetch) - (uri (crate-uri "signature" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "00457czdia5gvll3a1vzf2ffsdpgcz2dz0h56z7zk28nsbp8h5sy")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-signature-derive" ,rust-signature-derive-2)) - #:cargo-development-inputs - (("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-sha2" ,rust-sha2-0.10)))) - (home-page "https://github.com/RustCrypto/traits/tree/master/signature") - (synopsis - "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)") - (description - "This package contains traits which provide generic, object-safe APIs -for generating and verifying digital signatures.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-signature-1 - (package - (inherit rust-signature-2) - (name "rust-signature") - (version "1.6.4") - (source - (origin - (method url-fetch) - (uri (crate-uri "signature" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0z3xg405pg827g6hfdprnszsdqkkbrsfx7f1dl04nv9g7cxks8vl")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-signature-derive" ,rust-signature-derive-1)))))) - -(define-public rust-signature-derive-2 - (package - (name "rust-signature-derive") - (version "2.0.1") - (source (origin - (method url-fetch) - (uri (crate-uri "signature_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1z0mjjg3fpj08kc3nkax4lczgp7sfzbcm8q2qgim865510wkgpxc")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-2)))) - (home-page - "https://github.com/RustCrypto/traits/tree/master/signature/derive") - (synopsis "Custom derive support for the 'signature' crate") - (description "This package provides proc macros used by the signature -crate. - -It's not intended to be used directly. See the signature crate's documentation -for additional details.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-signature-derive-1 - (package - (inherit rust-signature-derive-2) - (name "rust-signature-derive") - (version "1.0.0-pre.7") - (source - (origin - (method url-fetch) - (uri (crate-uri "signature_derive" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "03wj342zvljknqwg3qbc9acrcsrzhdp1d2d6pfrh4p1b087k3rln")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1) - ("rust-synstructure" ,rust-synstructure-0.12)))))) - (define-public rust-simba-0.8 (package (name "rust-simba")