Subject: [bug#68312] [PATCH 038/156] gnu: Add rust-rust-decimal-1.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:15 +0100

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ff8da3e7d9a..f422c2a47e2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19663,6 +19663,44 @@ (define-public rust-decimal-2
      "Decimal floating point arithmetic for Rust.")
     (license license:asl2.0)))
 
+(define-public rust-rust-decimal-1
+  (package
+    (name "rust-rust-decimal")
+    (version "1.33.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rust_decimal" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1i0xgwgdnhbcbj8x6lw7pcgg4jb5lkww1j1wfbdc33ybbkn6lrq6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+                       ("rust-arrayvec" ,rust-arrayvec-0.7)
+                       ("rust-borsh" ,rust-borsh-1)
+                       ("rust-bytes" ,rust-bytes-1)
+                       ("rust-diesel" ,rust-diesel-1)
+                       ("rust-diesel" ,rust-diesel-2)
+                       ("rust-ndarray" ,rust-ndarray-0.15)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-postgres" ,rust-postgres-0.19)
+                       ("rust-proptest" ,rust-proptest-1)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-rkyv" ,rust-rkyv-0.7)
+                       ("rust-rocket" ,rust-rocket-0.5)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-tokio-postgres" ,rust-tokio-postgres-0.7))))
+    (home-page "https://github.com/paupino/rust-decimal")
+    (synopsis
+     "Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.")
+    (description
+     "Decimal number implementation written in pure Rust suitable for financial and
+fixed-precision calculations.")
+    (license license:expat)))
+
 (define-public rust-defer-0.1
   (package
     (name "rust-defer")
-- 
2.41.0