diff mbox series

[bug#73896,v4,12/20] gnu: Add rust-primal-slowsieve-0.3.

Message ID 20241105231519.22378-12-ngraves@ngraves.fr
State New
Headers show
Series [bug#73896,v4,01/20] gnu: rust-widestring-0.4: Update to 0.4.3. | expand

Commit Message

Nicolas Graves Nov. 5, 2024, 11:15 p.m. UTC
* gnu/packages/crates-io.scm (rust-primal-slowsieve-0.3): New variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 40681cee8a..8bab66850e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56690,6 +56690,30 @@  (define-public rust-primal-sieve-0.3
     (description "This package provides a high performance prime sieve.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-primal-slowsieve-0.3
+  (package
+    (name "rust-primal-slowsieve")
+    (version "0.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "primal-slowsieve" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02pixp7xprkmj0fvjgg6n4dn5f8syr6xj2m2dxn0nyg06b8lipy9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-primal-bit" ,rust-primal-bit-0.3)
+                       ("rust-primal-estimate" ,rust-primal-estimate-0.3))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3))))
+    (home-page "https://github.com/huonw/primal")
+    (synopsis "Simple sieve of Eratosthenes")
+    (description
+     "This package provides a simple sieve of Eratosthenes designed for
+testing faster sieves.  For use in Rust crates, use @code{rust-primal-sieve}
+or @code{rust-primal} instead.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-print-bytes-1
   (package
     (name "rust-print-bytes")