From c651f3f63ab5d5c1172f6209d582273db83c8705 Mon Sep 17 00:00:00 2001 From: Efraim Flashner <efraim@flashner.co.il> Date: Wed, 24 Jan 2024 11:27:24 +0200 Subject: [PATCH] gnu: rust-headers: Move to (gnu packages crates-web). * gnu/packages/crates-io.scm (rust-headers-0.3, rust-headers-0.2, rust-headers-core-0.2, rust-headers-core-0.1): Move from here ... * gnu/packages/crates-web.scm: ... to here. Change-Id: I9fe5dc2fcd5ef5441a04629dd0d7d106afb7ba29 --- gnu/packages/crates-io.scm | 87 ------------------------------------- gnu/packages/crates-web.scm | 87 +++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 87 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 134c6b9e9b..d4be87b789 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -26912,93 +26912,6 @@ (define-public rust-hdrhistogram-7 (description "This package provides a port of @code{HdrHistogram} to Rust.") (license (list license:expat license:asl2.0)))) -(define-public rust-headers-0.3 - (package - (name "rust-headers") - (version "0.3.9") - (source - (origin - (method url-fetch) - (uri (crate-uri "headers" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0w62gnwh2p1lml0zqdkrx9dp438881nhz32zrzdy61qa0a9kns06")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-base64" ,rust-base64-0.21) - ("rust-bytes" ,rust-bytes-1) - ("rust-headers-core" ,rust-headers-core-0.2) - ("rust-http" ,rust-http-0.2) - ("rust-httpdate" ,rust-httpdate-1) - ("rust-mime" ,rust-mime-0.3) - ("rust-sha1" ,rust-sha1-0.10)))) - (home-page "https://hyper.rs") - (synopsis "Typed HTTP headers") - (description "This package provides typed HTTP headers.") - (license license:expat))) - -(define-public rust-headers-0.2 - (package - (inherit rust-headers-0.3) - (name "rust-headers") - (version "0.2.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "headers" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0hmnrra00cjqpsn05klnr9cysrv2bm19akxl5lncwcrgfbcafb48")))) - (arguments - `(#:cargo-inputs - (("rust-base64" ,rust-base64-0.10) - ("rust-bitflags" ,rust-bitflags-1) - ("rust-bytes" ,rust-bytes-0.4) - ("rust-headers-core" ,rust-headers-core-0.1) - ("rust-http" ,rust-http-0.1) - ("rust-mime" ,rust-mime-0.3) - ("rust-sha-1" ,rust-sha-1-0.8) - ("rust-time" ,rust-time-0.1)))))) - -(define-public rust-headers-core-0.2 - (package - (name "rust-headers-core") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "headers-core" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0ab469xfpd411mc3dhmjhmzrhqikzyj8a17jn5bkj9zfpy0n9xp7")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-http" ,rust-http-0.2)))) - (home-page "https://hyper.rs") - (synopsis "Typed HTTP headers core trait") - (description "This package provides typed HTTP headers core trait.") - (license license:expat))) - -(define-public rust-headers-core-0.1 - (package - (inherit rust-headers-core-0.2) - (name "rust-headers-core") - (version "0.1.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "headers-core" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0ds20kg0igncs2r0jrcf26mq72k3j6ilanr0qwh7r7xak8kk2wcn")))) - (arguments - `(#:cargo-inputs - (("rust-bytes" ,rust-bytes-0.4) - ("rust-http" ,rust-http-0.1)))))) - (define-public rust-heapless-0.7 (package (name "rust-heapless") diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index afe2532e72..18da03e5e3 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -1820,6 +1820,93 @@ (define-public rust-h3-quinn-0.0.4 "This package provides QUIC transport implementation based on Quinn.") (license license:expat))) +(define-public rust-headers-0.3 + (package + (name "rust-headers") + (version "0.3.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "headers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0w62gnwh2p1lml0zqdkrx9dp438881nhz32zrzdy61qa0a9kns06")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.21) + ("rust-bytes" ,rust-bytes-1) + ("rust-headers-core" ,rust-headers-core-0.2) + ("rust-http" ,rust-http-0.2) + ("rust-httpdate" ,rust-httpdate-1) + ("rust-mime" ,rust-mime-0.3) + ("rust-sha1" ,rust-sha1-0.10)))) + (home-page "https://hyper.rs") + (synopsis "Typed HTTP headers") + (description "This package provides typed HTTP headers.") + (license license:expat))) + +(define-public rust-headers-0.2 + (package + (inherit rust-headers-0.3) + (name "rust-headers") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "headers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0hmnrra00cjqpsn05klnr9cysrv2bm19akxl5lncwcrgfbcafb48")))) + (arguments + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.10) + ("rust-bitflags" ,rust-bitflags-1) + ("rust-bytes" ,rust-bytes-0.4) + ("rust-headers-core" ,rust-headers-core-0.1) + ("rust-http" ,rust-http-0.1) + ("rust-mime" ,rust-mime-0.3) + ("rust-sha-1" ,rust-sha-1-0.8) + ("rust-time" ,rust-time-0.1)))))) + +(define-public rust-headers-core-0.2 + (package + (name "rust-headers-core") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "headers-core" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ab469xfpd411mc3dhmjhmzrhqikzyj8a17jn5bkj9zfpy0n9xp7")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-http" ,rust-http-0.2)))) + (home-page "https://hyper.rs") + (synopsis "Typed HTTP headers core trait") + (description "This package provides typed HTTP headers core trait.") + (license license:expat))) + +(define-public rust-headers-core-0.1 + (package + (inherit rust-headers-core-0.2) + (name "rust-headers-core") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "headers-core" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ds20kg0igncs2r0jrcf26mq72k3j6ilanr0qwh7r7xak8kk2wcn")))) + (arguments + `(#:cargo-inputs + (("rust-bytes" ,rust-bytes-0.4) + ("rust-http" ,rust-http-0.1)))))) + (define-public rust-http-1 (package (name "rust-http")