From 0105912c756a0031080112e106363e00a5334e33 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 May 2023 17:22:19 +0300 Subject: [PATCH] gnu: Add rust-xml5ever-0.17. * gnu/packages/crates-io.scm (rust-xml5ever-0.17): New variable. (rust-xml5ever-0.16): Inherit from rust-xml5ever-0.17. --- gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 26d92856ca..9155346450 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -75229,8 +75229,36 @@ (define-public rust-xml-rs-0.7 (description "An XML library in pure Rust.") (license license:expat))) +(define-public rust-xml5ever-0.17 + (package + (name "rust-xml5ever") + (version "0.17.0") + (source (origin + (method url-fetch) + (uri (crate-uri "xml5ever" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0l76v0c228c92sskiflpsy19c0bgc8q7flhlfanm32zrbb8f2d20")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-log" ,rust-log-0.4) + ("rust-mac" ,rust-mac-0.1) + ("rust-markup5ever" ,rust-markup5ever-0.11)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-rustc-test" ,rust-rustc-test-0.3)))) + (home-page + "https://github.com/servo/html5ever/blob/master/xml5ever/README.md") + (synopsis "Push based streaming parser for xml") + (description + "Push based streaming parser for xml.") + (license (list license:expat license:asl2.0)))) + (define-public rust-xml5ever-0.16 (package + (inherit rust-xml5ever-0.17) (name "rust-xml5ever") (version "0.16.2") (source @@ -75242,7 +75270,6 @@ (define-public rust-xml5ever-0.16 (sha256 (base32 "0rfqys8yyigkzrqcrn5c6r10v42pwxahccyyzhc293px30w1cd4j")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-log" ,rust-log-0.4) @@ -75251,13 +75278,7 @@ (define-public rust-xml5ever-0.16 ("rust-time" ,rust-time-0.1)) #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3) - ("rust-rustc-test" ,rust-rustc-test-0.3)))) - (home-page - "https://github.com/servo/html5ever/blob/master/xml5ever/README.md") - (synopsis "Push based streaming parser for xml") - (description - "Push based streaming parser for xml.") - (license (list license:expat license:asl2.0)))) + ("rust-rustc-test" ,rust-rustc-test-0.3)))))) (define-public rust-xmlparser-0.13 (package