diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-08-03 14:33:06 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-08-14 19:38:24 +0300 |
commit | 143c69c343bc3cb41782985c53100823f6759772 (patch) | |
tree | ae5f0285213798e04edaadb31a5477daa4e65007 /gnu/packages | |
parent | ac49d8f4e53d5dbf42d733026719376243245cba (diff) | |
download | guix-143c69c343bc3cb41782985c53100823f6759772.tar.gz |
gnu: Add rust-pem-2.
* gnu/packages/crates-io.scm (rust-pem-2): New variable. (rust-pem-1): Inherit from rust-pem-2.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 43670678a4..f99c3876e3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -46296,32 +46296,52 @@ procedural macros for rust-peg. To use rust-peg, see the peg package.") runtime support for rust-peg grammars. To use rust-peg, see the peg crate.") (license license:expat))) -(define-public rust-pem-1 +(define-public rust-pem-2 (package (name "rust-pem") - (version "1.1.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "pem" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1f184b7vs5kgwglfsy9adqqy7625jsq8jj1lsxah9abn78kmr0x8")))) + (version "2.0.1") + (source (origin + (method url-fetch) + (uri (crate-uri "pem" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "06j4vmzkfg5jh9ykc5bdvydishqkbb4sf64fa528wg6zbi0zw4vb")))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs - (("rust-base64" ,rust-base64-0.13) - ("rust-serde" ,rust-serde-1)) - #:cargo-development-inputs - (("rust-criterion" ,rust-criterion-0.3) - ("rust-serde-json" ,rust-serde-json-1)))) - (home-page "https://github.com/jcreekmore/pem-rs") + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.21) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-proptest" ,rust-proptest-1) + ("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://github.com/jcreekmore/pem-rs.git") (synopsis "Parse and encode PEM-encoded data") (description "This package provides a Rust library for parsing and encoding PEM-encoded data.") (license license:expat))) +(define-public rust-pem-1 + (package + (inherit rust-pem-2) + (name "rust-pem") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (crate-uri "pem" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1f184b7vs5kgwglfsy9adqqy7625jsq8jj1lsxah9abn78kmr0x8")))) + (arguments + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.13) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-serde-json" ,rust-serde-json-1)))))) + (define-public rust-pem-0.8 (package (inherit rust-pem-1) |