summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-07 08:40:43 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:29 +0200
commit42a1db2b04b8de7d120b5f03faaf518ab58d6c61 (patch)
tree27234722246b21c93f57ba46991ea52dc8fbc309
parent1f4fac253af85d4cc92549f803e123da7e263953 (diff)
downloadguix-42a1db2b04b8de7d120b5f03faaf518ab58d6c61.tar.gz
gnu: rust-half-2: Update to 2.3.1.
* gnu/packages/crates-io.scm (rust-half-2): Update to 2.3.1.
[arguments]: Add cargo-test-flags.
[cargo-inputs]: Add rust-cfg-if-1, rust-rand-0.8, rust-rand-distr-0.4.

Change-Id: I0f1338cbe0f6d414c091e34fb8ca2297e7ff6368
-rw-r--r--gnu/packages/crates-io.scm15
1 files changed, 12 insertions, 3 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8ea0018c55..65af5cfc5e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29242,19 +29242,28 @@ of gzip files based on the gzip header implementation in the @code{flate2} crate
 (define-public rust-half-2
   (package
     (name "rust-half")
-    (version "2.2.1")
+    (version "2.3.1")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "half" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
-               (base32 "1l1gdlzxgm7wc8xl5fxas20kfi1j35iyb7vfjkghbdzijcvazd02"))))
+               (base32 "0wj8gfpgn4zkjzw6hlnwb0pa71hy1mwq5h3fnpql71n02qwyalmw"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
+     `(#:cargo-test-flags
+       '("--release" "--"
+         "--skip=bfloat::test::test_nan_conversion_to_larger"
+         "--skip=bfloat::test::test_nan_conversion_to_smaller"
+         "--skip=binary16::test::test_nan_conversion_to_larger"
+         "--skip=binary16::test::test_nan_conversion_to_smaller")
+       #:cargo-inputs
        (("rust-bytemuck" ,rust-bytemuck-1)
+        ("rust-cfg-if" ,rust-cfg-if-1)
         ("rust-crunchy" ,rust-crunchy-0.2)
         ("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-rand-distr" ,rust-rand-distr-0.4)
         ("rust-serde" ,rust-serde-1)
         ("rust-zerocopy" ,rust-zerocopy-0.6))
        #:cargo-development-inputs