From 9c66edb8c618ad7c8f8733cb72d5fca789fe8668 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 18 Mar 2024 11:42:54 +0200 Subject: gnu: Add rust-headers-0.4. * gnu/packages/crates-web.scm (rust-headers-0.4): New variable. (rust-headers-0.3): Inherit from rust-headers-0.4. Change-Id: Ic242559fa75c9893cd473346c5e8554aea63fc67 --- gnu/packages/crates-web.scm | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'gnu/packages/crates-web.scm') diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 30e47fbd4d..965455aa7c 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -2404,8 +2404,34 @@ (define-public rust-h3-quinn-0.0.3 ("rust-quinn-proto" ,rust-quinn-proto-0.10) ("rust-tokio-util" ,rust-tokio-util-0.7)))))) +(define-public rust-headers-0.4 + (package + (name "rust-headers") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "headers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1abari69kjl2yv2dg06g2x17qgd1a20xp7aqmmg2vfhcppk0c89j")))) + (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.3) + ("rust-http" ,rust-http-1) + ("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.3 (package + (inherit rust-headers-0.4) (name "rust-headers") (version "0.3.9") (source @@ -2415,7 +2441,6 @@ (define-public rust-headers-0.3 (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) @@ -2424,11 +2449,7 @@ (define-public rust-headers-0.3 ("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))) + ("rust-sha1" ,rust-sha1-0.10)))))) (define-public rust-headers-0.2 (package -- cgit v1.2.3