Subject: [PATCH rust-team v3 37/75] gnu: Add rust-checked-int-cast-1.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:09 +0200

* gnu/packages/crates-io.scm (rust-checked-int-cast-1): Add variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e5e4eda1a3..52077a9946 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12328,6 +12328,26 @@ (define-public rust-charset-0.1
 Encoding Standard.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-checked-int-cast-1
+  (package
+    (name "rust-checked-int-cast")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "checked_int_cast" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "06brva5agm6g12q15f8fidz17akb85q211496p1k2qxhb9mmxk0p"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/PeterReid/checked_int_cast")
+    (synopsis
+     "Primitive integer conversions with over- and underflow checks")
+    (description
+     "This package provides conversions between primitive integers with
+overflow and underflow checking.")
+    (license license:expat)))
+
 (define-public rust-chrono-0.4
   (package
     (name "rust-chrono")
-- 
2.41.0