Subject: [PATCH 48/81] gnu: Add rust-base64-0.22.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:53 +0200

* gnu/packages/crates-io.scm (rust-base64-0.22): Add variable.
(rust-base64-0.21): Inherit from rust-base64-0.22.

Change-Id: Iffdb4052a09ba793f1f1cdb5c0a8748d23a168aa
---
 gnu/packages/crates-io.scm | 46 +++++++++++++++++++++++++-------------
 1 file changed, 30 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7db9254402..72e2c25df8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6951,8 +6951,37 @@ (define-public rust-base58-0.1
 c6e7d37.  However, this package works only up to 128 bytes.")
     (license license:expat)))
 
+(define-public rust-base64-0.22
+  (package
+    (name "rust-base64")
+    (version "0.22.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "base64" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "1imqzgh7bxcikp5vx3shqvw9j09g9ly0xr0jma0q66i52r7jbcvj"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:cargo-development-inputs (list rust-clap-3
+                                            rust-criterion-0.4
+                                            rust-once-cell-1
+                                            rust-rand-0.8
+                                            rust-rstest-0.13
+                                            rust-rstest-reuse-0.6
+                                            rust-strum-0.25)))
+    (home-page "https://github.com/marshallpierce/rust-base64")
+    (synopsis "Encodes and decodes base64 as bytes or utf8")
+    (description
+     "This package provides base64 encoding and decoding to bytes or
+utf8.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-base64-0.21
   (package
+    (inherit rust-base64-0.22)
     (name "rust-base64")
     (version "0.21.7")
     (source (origin
@@ -6961,22 +6990,7 @@ (define-public rust-base64-0.21
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "0rw52yvsk75kar9wgqfwgb414kvil1gn7mqkrhn9zf1537mpsacx"))))
-    (build-system cargo-build-system)
-    (arguments
-     `(#:cargo-development-inputs
-       (("rust-clap" ,rust-clap-3)
-        ("rust-criterion" ,rust-criterion-0.4)
-        ("rust-once-cell" ,rust-once-cell-1)
-        ("rust-rand" ,rust-rand-0.8)
-        ("rust-rstest" ,rust-rstest-0.13)
-        ("rust-rstest-reuse" ,rust-rstest-reuse-0.6)
-        ("rust-strum" ,rust-strum-0.25))))
-    (home-page "https://github.com/marshallpierce/rust-base64")
-    (synopsis "Encodes and decodes base64 as bytes or utf8")
-    (description
-     "This package encodes and decodes base64 as bytes or utf8.")
-    (license (list license:expat license:asl2.0))))
+                "0rw52yvsk75kar9wgqfwgb414kvil1gn7mqkrhn9zf1537mpsacx"))))))
 
 (define-public rust-base64-0.20
   (package
-- 
2.41.0