guix-commits
[Top][All Lists]
Advanced

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

86/330: gnu: Add rust-numtoa-0.2.


From: guix-commits
Subject: 86/330: gnu: Add rust-numtoa-0.2.
Date: Mon, 18 Mar 2024 07:15:22 -0400 (EDT)

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

commit 8e73dd773e784f04be11403396f8ef864287def9
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Mar 16 21:19:47 2024 +0200

    gnu: Add rust-numtoa-0.2.
    
    * gnu/packages/crates-io.scm (rust-numtoa-0.2): New variable.
    (rust-numtoa-0.1): Inherit from rust-numtoa-0.2.
    
    Change-Id: Ibd01cd04daffaa3edbcb5a92dcbb198fe5750b5f
---
 gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 78b6a1f78d..09afa0aa38 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43693,8 +43693,40 @@ giga, kibi.")
 giga, kibi.")
     (license license:expat)))
 
+(define-public rust-numtoa-0.2
+  (package
+    (name "rust-numtoa")
+    (version "0.2.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "numtoa" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03yhkhjb3d1zx22m3pgcbpk8baj0zzvaxqc25c584sdq77jw98ka"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--"
+         "--skip=base10_i128_array_too_small"
+         "--skip=base10_i16_array_too_small"
+         "--skip=base10_i32_array_too_small"
+         "--skip=base10_i64_array_too_small"
+         "--skip=base10_i8_array_too_small"
+         "--skip=base10_u128_array_too_small"
+         "--skip=base10_u16_array_too_small"
+         "--skip=base10_u32_array_too_small"
+         "--skip=base10_u64_array_too_small"
+         "--skip=base10_u8_array_too_small")))
+    (home-page "https://gitlab.com/mmstick/numtoa";)
+    (synopsis "Convert numbers into stack-allocated byte arrays")
+    (description
+     "This package can convert numbers into stack-allocated byte arrays.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-numtoa-0.1
   (package
+    (inherit rust-numtoa-0.2)
     (name "rust-numtoa")
     (version "0.1.0")
     (source
@@ -43705,13 +43737,7 @@ giga, kibi.")
         (sha256
          (base32
           "1vs9rhggqbql1p26x8nkha1j06wawwgb2jp5fs88b5gi7prvvy5q"))))
-    (build-system cargo-build-system)
-    (arguments '(#:tests? #f))
-    (home-page "https://gitlab.com/mmstick/numtoa";)
-    (synopsis "Convert numbers into stack-allocated byte arrays")
-    (description
-     "This package can convert numbers into stack-allocated byte arrays.")
-    (license (list license:expat license:asl2.0))))
+    (arguments '(#:tests? #f))))
 
 (define-public rust-oauth2-types-0.7
   (package



reply via email to

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