Subject: [bug#53096] [PATCH 21/41] gnu : rust-rbw: adding rust-pem-rfc7468

From: Nicolas Graves <[email-masked]>
Date: Fri, 07 Jan 2022 15:15:08 +0100

>From dad7d96d51d2d4477e1a994e674464f0ff45fafa Mon Sep 17 00:00:00 2001
From: Nicolas Graves <[email-masked]>
Date: Fri, 7 Jan 2022 12:31:18 +0100
Subject: [PATCH 22/42] rust-rbw dependencies : adding rust-pem-rfc7468

---
 gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++------
 1 file changed, 33 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 602391082b..62db5e65cc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37447,18 +37447,45 @@ (define-public rust-peg-runtime-0.6
 runtime support for rust-peg grammars.  To use rust-peg, see the peg crate.")
     (license license:expat)))
 
-(define-public rust-percent-encoding-2
+(define-public rust-pem-rfc7468-0.2
   (package
-    (name "rust-percent-encoding")
-    (version "2.1.0")
+    (name "rust-pem-rfc7468")
+    (version "0.2.4")
     (source
       (origin
         (method url-fetch)
-        (uri (crate-uri "percent-encoding" version))
+        (uri (crate-uri "pem-rfc7468" version))
         (file-name (string-append name "-" version ".tar.gz"))
         (sha256
-         (base32
-          "0bp3zrsk3kr47fbpipyczidbbx4g54lzxdm77ni1i3qws10mdzfl"))))
+          (base32 "1m1c9jypydzabg4yscplmvff7pdcc8gg4cqg081hnlf03hxkmsc4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build?
+       #t
+       #:cargo-inputs (("rust-base64ct" ,rust-base64ct-1))))
+    (home-page "https://github.com/RustCrypto/formats/tree/master/pem-rfc7468")
+    (synopsis
+      "PEM Encoding implementing a subset of Privacy-Enhanced Mail encoding")
+    (description
+      "PEM Encoding (RFC 7468) for PKIX, PKCS, and CMS Structures,
+implementing a strict subset of the original Privacy-Enhanced Mail encoding
+intended specifically for use with cryptographic keys, certificates, and other
+messages.  Provides a no_std-friendly, constant-time implementation suitable
+for use with cryptographic private keys.")
+    (license (list license:asl2.0 license:expat))))
+
+(define-public rust-percent-encoding-2
+  (package
+    (name "rust-percent-encoding")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "percent-encoding" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0bp3zrsk3kr47fbpipyczidbbx4g54lzxdm77ni1i3qws10mdzfl"))))
     (build-system cargo-build-system)
     (home-page "https://github.com/servo/rust-url/")
     (synopsis "Percent encoding and decoding")
-- 
2.34.0