guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

54/62: gnu: Add rust-num-conv-0.1.


From: guix-commits
Subject: 54/62: gnu: Add rust-num-conv-0.1.
Date: Wed, 13 Mar 2024 16:22:27 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 5bbeccbc6b36f6fd84991edc59d392d806c4ad6d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 13 21:34:33 2024 +0200

    gnu: Add rust-num-conv-0.1.
    
    * gnu/packages/crates-io.scm (rust-num-conv-0.1): New variable.
    
    Change-Id: Ife3e60b45c8bbbdeef1e2021b57ec85b1e6a894c
---
 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 08ac72debd..e391aae3e1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42561,6 +42561,26 @@ Rust.")
         ("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
         ("rust-serde" ,rust-serde-0.8))))))
 
+(define-public rust-num-conv-0.1
+  (package
+    (name "rust-num-conv")
+    (version "0.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "num-conv" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ndiyg82q73783jq18isi71a7mjh56wxrk52rlvyx0mi5z9ibmai"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/jhpratt/num-conv";)
+    (synopsis "Convert between integer types")
+    (description
+     "@code{num_conv} is a crate to convert between integer types without using
+@code{as} casts.  This provides better certainty when refactoring, makes the
+exact behavior of code more explicit, and allows using turbofish syntax.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-num-cpus-1
   (package
     (name "rust-num-cpus")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]