Subject: [PATCH 008/156] gnu: Add rust-atoi-2.

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

* gnu/packages/crates-io.scm (rust-atoi-2): New variable.

Change-Id: I61e500322c011606cfa735f43d66a5f509c34d70
---
 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 08db262eaf0..ae249452d22 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4814,6 +4814,26 @@ (define-public rust-async-trait-0.1
 methods.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-atoi-2
+  (package
+    (name "rust-atoi")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "atoi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0a05h42fggmy7h0ajjv6m7z72l924i7igbx13hk9d8pyign9k3gj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-num-traits" ,rust-num-traits-0.2))))
+    (home-page "https://github.com/pacman82/atoi-rs")
+    (synopsis "Parse integers directly from `[u8]` slices in safe code")
+    (description "Parse integers directly from `[u8]` slices in safe code")
+    (license license:expat)))
+
 (define-public rust-atom-0.3
   (package
     (name "rust-atom")
-- 
2.41.0