diff mbox series

[bug#72467,4/7] gnu: Add rust-roaring-0.10.

Message ID 3376f1bcfb38327c638ba2512a0b654d9f772209.1722777393.git.suhail@bayesians.ca
State New
Headers show
Series Add complgen. | expand

Commit Message

Suhail Singh Aug. 4, 2024, 4:43 p.m. UTC
* gnu/packages/crates-io.scm (rust-roaring-0.10): New variable.
(rust-retain-mut-0.1.7): New variable.

Change-Id: I71b582e85384caecbfff08f3b4fbac899e71255b
---
 gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2007a1586a..16b5c7dc6f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62689,6 +62689,19 @@  (define-public rust-retain-mut-0.1
 functionality as retain but gives mutable borrow to the predicate.")
     (license license:expat)))
 
+(define-public rust-retain-mut-0.1.7
+  (package
+    (inherit rust-retain-mut-0.1)
+    (name "rust-retain-mut")
+    (version "0.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "retain_mut" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11j09lp1wqwc2r9bw58my2474zj95jz5fihff3ldv3rz0g2baccc"))))))
+
 (define-public rust-rfc2047-decoder-0.2
   (package
     (name "rust-rfc2047-decoder")
@@ -62999,6 +63012,32 @@  (define-public rust-roadmap-0.5
     (description "Model a project roadmap as a directed acyclic graph.")
     (license license:expat-0)))
 
+(define-public rust-roaring-0.10
+  (package
+    (name "rust-roaring")
+    (version "0.10.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "roaring" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wcgprdw49xy7w00zzspbhrq8f1kvlwqasmfxh8y1gd84vlba3zg"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bytemuck" ,rust-bytemuck-1)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-retain-mut" ,rust-retain-mut-0.1.7)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1)
+                                   ("rust-proptest" ,rust-proptest-1)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/RoaringBitmap/roaring-rs")
+    (synopsis "better compressed bitset - pure Rust implementation")
+    (description
+     "This package provides a better compressed bitset - pure Rust implementation.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rodio-0.15
   (package
     (name "rust-rodio")