Subject: [bug#71110] [PATCH rust-team 14/37] gnu: Add rust-bson-1.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 22 May 2024 11:45:32 +0200

* gnu/packages/crates-io.scm (rust-bson-1): New variable.

Change-Id: Ic8c8660b30df76db9c63888a778d2eb7d2ce665a
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 12d0b12fd6..3f19f703cc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9182,6 +9182,36 @@ (define-public rust-bson-2
     (description "This crate provides encoding and decoding support for BSON.")
     (license license:expat)))
 
+(define-public rust-bson-1
+  (package
+    (inherit rust-bson-2)
+    (name "rust-bson")
+    (version "1.2.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bson" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1cbc9mbjm4imzcv95y8r6rgl6kgv7ka5ifhhlxaqi4sv0dwaa2ny"))))
+    (arguments
+     `(#:tests? #f      ; file not found for module `tests`
+       #:cargo-inputs
+       (("rust-base64" ,rust-base64-0.13)
+        ("rust-chrono" ,rust-chrono-0.4)
+        ("rust-decimal" ,rust-decimal-2)
+        ("rust-hex" ,rust-hex-0.4)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-linked-hash-map" ,rust-linked-hash-map-0.5)
+        ("rust-rand" ,rust-rand-0.7)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-uuid" ,rust-uuid-0.8))
+       #:cargo-development-inputs
+       (("rust-assert-matches" ,rust-assert-matches-1)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
+        ("rust-serde-bytes" ,rust-serde-bytes-0.11))))))
+
 (define-public rust-bstr-1
   (package
     (name "rust-bstr")
-- 
2.41.0