Subject: [bug#69257] [PATCH 153/228] gnu: Add rust-yap-0.12.

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

* gnu/packages/crates-io.scm (rust-yap-0.12): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e326377391..a1b1e2cf8f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -81141,6 +81141,31 @@ (define-public rust-yansi-term-0.1
      "Library for ANSI terminal colours and styles (bold, underline).")
     (license license:expat)))
 
+(define-public rust-yap-0.12
+  (package
+    (name "rust-yap")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "yap" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "07q53xz7wij2n4vnv71cpy1wsab52c78d5xx1kifi983p3knkqmz"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* "Cargo.toml"
+                              (("\"0.12.0\"") "\"0.13\"")))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs (("rust-logos" ,rust-logos-0.13))))
+    (home-page "https://github.com/jsdw/yap")
+    (synopsis "Utility methods to help with parsing strings and slices")
+    (description
+     "Yet Another Parser library.  A lightweight, dependency free, parser
+combinator inspired set of utility methods to help with parsing strings
+and slices.")
+    (license license:expat)))
+
 (define-public rust-yasna-0.5
   (package
     (name "rust-yasna")
-- 
2.41.0