diff mbox series

[bug#74519,rust-team,07/30] gnu: Add rust-pulldown-cmark-0.11.

Message ID bae3fbd9f4d25a147e64e693cbb9db339e7d3327.1732501656.git.murilo@disroot.org
State New
Headers show
Series Add helix | expand

Commit Message

Murilo Nov. 25, 2024, 2:48 a.m. UTC
* 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 mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 86fc3c7b12..f2258cff82 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60920,8 +60920,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
@@ -60931,7 +60960,6 @@  (define-public rust-pulldown-cmark-0.9
               (sha256
                (base32
                 "166rhmwk42ffirrzhv7lmsh9f3my6xv1ggmb66fgzv57y3qs58bp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
@@ -60947,16 +60975,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
@@ -61008,7 +61031,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