[bug#74234,rust-team,v3,12/23] gnu: Add rust-checked-int-cast-1.

Message ID 20241209011150.1455224-13-aaron.covrig.us@ieee.org
State New
Headers
Series WIP add gnome-authenticator |

Commit Message

Aaron Covrig Dec. 9, 2024, 1:11 a.m. UTC
  From: Giacomo Leidi <goodoldpaul@autistici.org>

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

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d87b24810a..e03c651125 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13159,6 +13159,26 @@  (define-public rust-chrono-0.4
     (description "Date and time library for Rust.")
     (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 "Conversions between primitive integers with overflow and
+underflow checking")
+    (description
+     "This package provides Conversions between primitive integers with
+overflow and underflow checking.")
+    (license license:expat)))
+
 (define-public rust-chic-1
   (package
     (name "rust-chic")