Subject: [PATCH rust-team 02/46] gnu: Add rust-pulldown-cmark-to-cmark-10.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:15 +0100

* gnu/packages/crates-io.scm (rust-pulldown-cmark-to-cmark-10): New variable.

Change-Id: I23b664947c2c31589f4a80aae89186834987a3b4
---
 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 65a58900ff..8b2d9a6f78 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49821,6 +49821,34 @@ (define-public rust-puffin-0.18
     (description "Simple instrumentation profiler for games.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pulldown-cmark-to-cmark-10
+  (package
+    (name "rust-pulldown-cmark-to-cmark")
+    (version "10.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pulldown-cmark-to-cmark" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0gc366cmd5jxal9m95l17rvqsm4dn62lywc8v5gwq8vcjvhyd501"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-pulldown-cmark" ,rust-pulldown-cmark-0.9))))
+    (home-page "https://github.com/Byron/pulldown-cmark-to-cmark")
+    (synopsis
+     "Convert pulldown-cmark Events back to the string they were parsed from")
+    (description
+     "A utility library which translates Event back to markdown.  It's the
+prerequisite for writing markdown filters which can work as
+@code{mdbook-preprocessors}.
+
+This library takes great pride in supporting everything that
+@code{pulldown-cmark} supports, including tables and footnotes and codeblocks
+in codeblocks, while assuring quality with a powerful test suite.")
+    (license license:asl2.0)))
+
 (define-public rust-pulldown-cmark-0.9
   (package
     (name "rust-pulldown-cmark")
-- 
2.41.0