diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-24 11:27:24 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:31 +0200 |
commit | c651f3f63ab5d5c1172f6209d582273db83c8705 (patch) | |
tree | 254e1b7e4e56ceb3e64497fb9ed136b74ae39be1 /gnu/packages/crates-web.scm | |
parent | 333e2b85fc0ccc13a8a17d2d7396374e144ae5f4 (diff) |
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
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r-- | gnu/packages/crates-web.scm | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index afe2532e722..18da03e5e3f 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -1820,6 +1820,93 @@ built on the Actix ecosystem.") "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") |