Subject: [PATCH 168/228] gnu: Add rust-subslice-0.2.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:58 +0100

* gnu/packages/crates-io.scm (rust-subslice-0.2): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b1663d0872..5ace7a9539 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67966,6 +67966,35 @@ (define-public rust-subprocess-0.2
 inspired by Python's subprocess module, with Rust-specific extensions.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-subslice-0.2
+  (package
+    (name "rust-subslice")
+    (version "0.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "subslice" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1bkasla3shbfvlqlvkdbisgaz0qsl0dsyzqz3zh2vc1vka0f9a70"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-galil-seiferas" ,rust-galil-seiferas-0.1)
+                       ("rust-jetscii" ,rust-jetscii-0.3)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-unchecked-index" ,rust-unchecked-index-0.2))
+       #:cargo-development-inputs
+       (("rust-itertools" ,rust-itertools-0.7)
+        ("rust-macro-attr" ,rust-macro-attr-0.2)
+        ("rust-newtype-derive" ,rust-newtype-derive-0.1)
+        ("rust-odds" ,rust-odds-0.2)
+        ("rust-quickcheck" ,rust-quickcheck-0.5)
+        ("rust-rand" ,rust-rand-0.3))))
+    (home-page "https://github.com/strake/subslice.rs")
+    (synopsis "Subslice search")
+    (description "This package provides fast subslice search.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-supercow-0.1
   (package
     (name "rust-supercow")
-- 
2.41.0