Subject: [PATCH 05/52] gnu: Add rust-twoway-0.2.

From: Leo Prikler <[email-masked]>
Date: Wed, 24 Feb 2021 12:10:48 +0100

* gnu/packages/crates-io.scm (rust-twoway-0.2): New variable.
---
 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 8a1d18de33..f5538550cc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44855,6 +44855,35 @@ design abstracts away all the internals of the WebSocket protocol but still
 makes them accessible for those who wants full control over the network.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-twoway-0.2
+  (package
+    (name "rust-twoway")
+    (version "0.2.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "twoway" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1g55kf4rx0q682fvzxdixqihmlbamn5ms2yqvcm92fny21chfh3b"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build? #t
+        #: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))))
+    (home-page "https://github.com/bluss/twoway")
+    (synopsis "Fast substring search for strings and byte strings")
+    (description
+     "This package provides a fast substring search for strings and byte
+strings.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-twoway-0.1
   (package
     (name "rust-twoway")
-- 
2.30.1