Subject: [PATCH 67/81] gnu: Add rust-pulldown-cmark-0.10.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:59:12 +0200

* gnu/packages/crates-io.scm (rust-pulldown-cmark-0.10): Add variable.
(rust-pulldown-cmark-0.9): Inherit from rust-pulldown-cmark-0.10.

Change-Id: I631ab9debe47464bf21a2f4ae680c781b2a4794f
---
 gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c54b479e80..855d9f62c1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60278,8 +60278,40 @@ (define-public rust-puffin-0.18
     (description "Simple instrumentation profiler for games.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pulldown-cmark-0.10
+  (package
+    (name "rust-pulldown-cmark")
+    (version "0.10.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pulldown-cmark" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "14rrzqnv6j64j75558m7gzw6lc9b24057v6415smx1z7cvm9p5vn"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-bitflags-2
+                           rust-getopts-0.2
+                           rust-memchr-2
+                           rust-pulldown-cmark-escape-0.10
+                           rust-serde-1
+                           rust-unicase-2)
+      #:cargo-development-inputs (list rust-bincode-1
+                                       rust-criterion-0.5
+                                       rust-lazy-static-1 rust-regex-1
+                                       rust-serde-json-1)))
+    (home-page "https://github.com/raphlinus/pulldown-cmark")
+    (synopsis "pull parser for CommonMark")
+    (description
+      "This package provides a pull parser for @code{CommonMark}.")
+    (license license:expat)))
+
 (define-public rust-pulldown-cmark-0.9
   (package
+    (inherit rust-pulldown-cmark-0.10)
     (name "rust-pulldown-cmark")
     (version "0.9.3")
     (source (origin
@@ -60289,7 +60321,6 @@ (define-public rust-pulldown-cmark-0.9
               (sha256
                (base32
                 "166rhmwk42ffirrzhv7lmsh9f3my6xv1ggmb66fgzv57y3qs58bp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
@@ -60305,12 +60336,7 @@ (define-public rust-pulldown-cmark-0.9
         ("rust-markup5ever-rcdom" ,rust-markup5ever-rcdom-0.2)
         ("rust-regex" ,rust-regex-1)
         ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-tendril" ,rust-tendril-0.4))))
-    (home-page "https://github.com/raphlinus/pulldown-cmark")
-    (synopsis "Pull parser for CommonMark")
-    (description
-     "This package provides a pull parser for CommonMark.")
-    (license license:expat)))
+        ("rust-tendril" ,rust-tendril-0.4))))))
 
 (define-public rust-pulldown-cmark-0.8
   (package
-- 
2.41.0