Subject: [PATCH 62/81] gnu: Add rust-markup5ever-0.12.

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

* gnu/packages/crates-io.scm (rust-markup5ever-0.12): Add variable.
(rust-markup5ever-0.11): Inherit from rust-markup5ever-0.12.

Change-Id: I0e956e49b9e3f4567bce7b705747a8a56ec4402a
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0e2fb8c530..9d17055fca 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41928,8 +41928,35 @@ (define-public rust-markup-proc-macro-0.13
 template engine for Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-markup5ever-0.12
+  (package
+    (name "rust-markup5ever")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "markup5ever" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0idy4vjihg2dw73j2vkb5kdghvga3bwnw0qx8jwci4m6xfxkmkhn"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-log-0.4
+                           rust-phf-0.11
+                           rust-phf-codegen-0.11
+                           rust-string-cache-0.8
+                           rust-string-cache-codegen-0.5
+                           rust-tendril-0.4)))
+    (home-page "https://github.com/servo/html5ever")
+    (synopsis "Common code for xml5ever and html5ever")
+    (description
+     "This package provides common code for xml5ever and html5ever.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-markup5ever-0.11
   (package
+    (inherit rust-markup5ever-0.12)
     (name "rust-markup5ever")
     (version "0.11.0")
     (source (origin
@@ -41939,7 +41966,6 @@ (define-public rust-markup5ever-0.11
               (sha256
                (base32
                 "05mhzsp6lfxla1fgd0ac283b405s6kyj27wj5r6d7wq42jxjj9ks"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-log" ,rust-log-0.4)
@@ -41947,12 +41973,7 @@ (define-public rust-markup5ever-0.11
         ("rust-phf-codegen" ,rust-phf-codegen-0.10)
         ("rust-string-cache" ,rust-string-cache-0.8)
         ("rust-string-cache-codegen" ,rust-string-cache-codegen-0.5)
-        ("rust-tendril" ,rust-tendril-0.4))))
-    (home-page "https://github.com/servo/html5ever")
-    (synopsis "Common code for xml5ever and html5ever")
-    (description
-     "Common code for xml5ever and html5ever.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-tendril" ,rust-tendril-0.4))))))
 
 (define-public rust-markup5ever-0.10
   (package
-- 
2.41.0