Subject: [PATCH rust-team 09/30] gnu: Add rust-regex-cursor-0.1.

From: Murilo <[email-masked]>
Date: Sun, 24 Nov 2024 23:48:20 -0300

* gnu/packages/crates-io.scm (rust-regex-cursor-0.1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 63b13550f8..a29bdab7ad 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42988,6 +42988,34 @@ (define-public rust-pulldown-cmark-escape-0.11
 the pulldown-cmark project.")
     (license license:expat)))
 
+(define-public rust-regex-cursor-0.1
+  (package
+    (name "rust-regex-cursor")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "regex-cursor" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0sbi1xr9201hd5c40779gfnmlnmrb4yqs4jj07d6zbp3znsjfhxf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; Tests fail
+       #:cargo-inputs (("rust-log" ,rust-log-0.4)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-regex-automata" ,rust-regex-automata-0.4)
+                       ("rust-regex-syntax" ,rust-regex-syntax-0.8)
+                       ("rust-ropey" ,rust-ropey-1))
+       #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1)
+                                   ("rust-proptest" ,rust-proptest-1)
+                                   ("rust-regex-test" ,rust-regex-test-0.1))))
+    (home-page "https://github.com/pascalkuthe/regex-cursor")
+    (synopsis "Regex fork that can search discontiguous haystacks")
+    (description
+     "This package provides regex fork that can search discontiguous haystacks.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rust-lzma-0.5
   (package
     (name "rust-rust-lzma")
-- 
2.46.0