Subject: [PATCH v2 rust-team 07/23] gnu: Add rust-pulldown-cmark-0.11.

From: Murilo <[email-masked]>
Date: Fri, 29 Nov 2024 11:36:30 -0300

* gnu/packages/crates-io.scm (rust-pulldown-cmark-0.11): New variable.
(rust-pulldown-cmark-0.9): Inherit from rust-pulldown-cmark-0.11.
(rust-pulldown-cmark-0.8): Inherit from rust-pulldown-cmark-0.11.
(rust-pulldown-cmark-0.4): Inherit from rust-pulldown-cmark-0.11.

Change-Id: Ief81ecbd8d793a0d7d4d20047c8237ef63563942
---
 gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7f8cae086d..605c8be0d2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60982,8 +60982,37 @@ (define-public rust-pulldown-cmark-to-cmark-10
 in codeblocks, while assuring quality with a powerful test suite.")
     (license license:asl2.0)))
 
+(define-public rust-pulldown-cmark-0.11
+  (package
+    (name "rust-pulldown-cmark")
+    (version "0.11.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pulldown-cmark" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09a6q582pblnj8xflbx6zb29zgnwg0r6rg9wi54wdikq5k9434v7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-getopts" ,rust-getopts-0.2)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-pulldown-cmark-escape" ,rust-pulldown-cmark-escape-0.11)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-unicase" ,rust-unicase-2))
+       #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1)
+                                   ("rust-lazy-static" ,rust-lazy-static-1)
+                                   ("rust-regex" ,rust-regex-1)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/pulldown-cmark/pulldown-cmark")
+    (synopsis "Pull parser for CommonMark")
+    (description "This package provides a pull parser for CommonMark.")
+    (license license:expat)))
+
 (define-public rust-pulldown-cmark-0.9
   (package
+    (inherit rust-pulldown-cmark-0.11)
     (name "rust-pulldown-cmark")
     (version "0.9.3")
     (source (origin
@@ -60993,7 +61022,6 @@ (define-public rust-pulldown-cmark-0.9
               (sha256
                (base32
                 "166rhmwk42ffirrzhv7lmsh9f3my6xv1ggmb66fgzv57y3qs58bp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
@@ -61009,16 +61037,11 @@ (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
-    (inherit rust-pulldown-cmark-0.9)
+    (inherit rust-pulldown-cmark-0.11)
     (name "rust-pulldown-cmark")
     (version "0.8.0")
     (source
@@ -61070,7 +61093,7 @@ (define-public rust-pulldown-cmark-to-cmark-7
 
 (define-public rust-pulldown-cmark-0.4
   (package
-    (inherit rust-pulldown-cmark-0.8)
+    (inherit rust-pulldown-cmark-0.11)
     (name "rust-pulldown-cmark")
     (version "0.4.1")
     (source
-- 
2.46.0