guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

152/281: gnu: Add rust-base64-0.21.


From: guix-commits
Subject: 152/281: gnu: Add rust-base64-0.21.
Date: Wed, 22 Feb 2023 05:41:04 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 9caa1d016d5648f266ad8e0a964e5fc99da3a781
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Feb 22 09:17:32 2023 +0200

    gnu: Add rust-base64-0.21.
    
    * gnu/packages/crates-io.scm (rust-base64-0.21): New variable.
    (rust-base64-0.13): Inherit from rust-base64-0.21.
---
 gnu/packages/crates-io.scm | 47 +++++++++++++++++++++++++++++++---------------
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9183e59b77..0e5040ff4f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5702,10 +5702,10 @@ RFC4648 Base32 or in Crockford Base32.")
 c6e7d37.  However, this package works only up to 128 bytes.")
     (license license:expat)))
 
-(define-public rust-base64-0.13
+(define-public rust-base64-0.21
   (package
     (name "rust-base64")
-    (version "0.13.0")
+    (version "0.21.0")
     (source
      (origin
        (method url-fetch)
@@ -5713,27 +5713,44 @@ c6e7d37.  However, this package works only up to 128 
bytes.")
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1z82g23mbzjgijkpcrilc7nljpxpvpf7zxf6iyiapkgka2ngwkch"))))
+        (base32 "0sidjip5b33sr6w7kasfj9qxpbda41nw0x4gjjk55g55a6mdv954"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-development-inputs
-       (("rust-criterion" ,rust-criterion-0.3)
-        ("rust-rand" ,rust-rand-0.6)
-        ("rust-structopt" ,rust-structopt-0.3))
-       #:phases
-        (modify-phases %standard-phases
-         (add-after 'unpack 'fix-criterion-minor-version
-          (lambda* _
-           (substitute* "Cargo.toml"
-             (("0\\.3\\.2")
-              ,(package-version rust-criterion-0.3))))))))
+     `(#:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.4)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-rstest" ,rust-rstest-0.12)
+        ("rust-rstest-reuse" ,rust-rstest-reuse-0.3)
+        ("rust-structopt" ,rust-structopt-0.3))))
     (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))))
 
+(define-public rust-base64-0.13
+  (package
+    (inherit rust-base64-0.21)
+    (name "rust-base64")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "base64" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1s494mqmzjb766fy1kqlccgfg2sdcjb6hzbvzqv2jw65fdi5h6wy"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (("=0\\.3\\.2") "^0.3.2"))))))
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-rand" ,rust-rand-0.6)
+        ("rust-structopt" ,rust-structopt-0.3))))))
+
 (define-public rust-base64-0.12
   (package
     (inherit rust-base64-0.13)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]