Subject: [bug#52296] [PATCH 1/4] gnu: Add rust-memchr-2.3.

From: jgart <[email-masked]>
Date: Sun, 5 Dec 2021 02:01:25 -0500

* gnu/packages/crates-io.scm (rust-memchr-2.3): New variable.
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7d5833ffc0..8bc49fcce6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2021 Petr Hodina <[email-masked]>
 ;;; Copyright © 2021 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2021 Jacob Hrbek <[email-masked]>
+;;; Copyright © 2021 jgart <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29019,6 +29020,26 @@ (define-public rust-measureme-0.7
 unstable -Z self-profile flag.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-memchr-2.3
+  (package
+    (name "rust-memchr")
+    (version "2.3.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "memchr" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "098m9clfs495illlw00hv2gg67mhm7jflld3msyclvi5m9xc9q8f"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build? #t #:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/BurntSushi/memchr")
+    (synopsis "Safe interface to memchr.")
+    (description "Safe interface to memchr.")
+    (license 
+      (list license:unlicense license:expat))))
+
 (define-public rust-memchr-2
   (package
     (name "rust-memchr")
-- 
2.34.0