From 7aa0a2e7082e67bf588460bf65d5d014fc9fd0df Mon Sep 17 00:00:00 2001 From: Tomas Volf <~@wolfsden.cz> Date: Thu, 15 Feb 2024 21:26:15 +0100 Subject: gnu: Add rust-pulldown-cmark-to-cmark-10. * gnu/packages/crates-io.scm (rust-pulldown-cmark-to-cmark-10): New variable. Change-Id: I23b664947c2c31589f4a80aae89186834987a3b4 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/crates-io.scm') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 65a58900ff..70e3352d06 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2023 Daniel Ziltener ;;; Copyright © 2023, 2024 Troy Figiel ;;; Copyright © 2024 Herman Rimm +;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; ;;; This file is part of GNU Guix. ;;; @@ -49821,6 +49822,36 @@ (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 + `(#:cargo-inputs (("rust-pulldown-cmark" ,rust-pulldown-cmark-0.9)) + #:cargo-development-inputs + (("rust-indoc" ,rust-indoc-1) + ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)))) + (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") -- cgit v1.2.3