From 271b2e6a7d8eda563859c7368c16447fb84f205c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 1 Oct 2023 16:20:14 +0300 Subject: [PATCH] gnu: Add rust-data-url-0.2. * gnu/packages/crates-io.scm (rust-data-url-0.2): New variable. (rust-data-url-0.1): Inherit from rust-data-url-0.2. --- gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 201ba83c07..f8725377a1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18572,8 +18572,32 @@ (define-public rust-data-encoding-2 hexadecimal, base32, and base64.") (license license:expat))) +(define-public rust-data-url-0.2 + (package + (name "rust-data-url") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "data-url" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19828d6jby17ghi7vr0zia9sy3hlvvjbngrcsllmfh2zfg1kjx4d")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs + (("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tester" ,rust-tester-0.9)))) + (home-page "https://github.com/servo/rust-url") + (synopsis "Processing of data: URL according to WHATWG's Fetch Standard") + (description + "Processing of data: URL according to WHATWG's Fetch Standard.") + (license (list license:expat license:asl2.0)))) + (define-public rust-data-url-0.1 (package + (inherit rust-data-url-0.2) (name "rust-data-url") (version "0.1.1") (source @@ -18585,19 +18609,13 @@ (define-public rust-data-url-0.1 (sha256 (base32 "14z15yiyklp5dv0k0q6pd83irrn0y8hj9y3fj17akkrbf37byc1s")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-matches" ,rust-matches-0.1)) #:cargo-development-inputs (("rust-rustc-test" ,rust-rustc-test-0.3) ("rust-serde" ,rust-serde-1) - ("rust-serde-json" ,rust-serde-json-1)))) - (home-page "https://github.com/servo/rust-url") - (synopsis "Processing of data: URL according to WHATWG's Fetch Standard") - (description - "Processing of data: URL according to WHATWG's Fetch Standard.") - (license (list license:expat license:asl2.0)))) + ("rust-serde-json" ,rust-serde-json-1)))))) (define-public rust-datetime-0.5 (package