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

From: Leo Prikler <[email-masked]>
Date: Wed, 17 Mar 2021 21:26:49 +0100

* gnu/packages/crates-io.scm (rust-twoway-0.2): New variable.
---
 gnu/packages/crates-io.scm | 44 ++++++++++++++++++++++++++------------
 1 file changed, 30 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c4627d5ac5..cf015f52fb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45904,25 +45904,28 @@ 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.1
+(define-public rust-twoway-0.2
   (package
     (name "rust-twoway")
-    (version "0.1.8")
+    (version "0.2.1")
     (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "twoway" version))
-       (file-name (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32 "1lbf64snscr3vz71jbl6i2c8zr2ndsiqbk6316z39fj1a8mipcar"))))
+      (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))))
+      `(#: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
@@ -45930,6 +45933,19 @@ makes them accessible for those who wants full control over the network.")
 strings.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-twoway-0.1
+  (package
+    (inherit rust-twoway-0.2)
+    (name "rust-twoway")
+    (version "0.1.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "twoway" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1lbf64snscr3vz71jbl6i2c8zr2ndsiqbk6316z39fj1a8mipcar"))))))
+
 (define-public rust-typeable-0.1
   (package
     (name "rust-typeable")
-- 
2.31.0