summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2024-02-15 21:26:19 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:58:54 +0200
commitb4db787dc8c50a046c739164e9206a393ea5a0b2 (patch)
treebf51a88a4b55b054c7838f415a5d11e4efc2be61 /gnu
parentc2af73699cd911f2f4712fe294a8d6d3e88f60ac (diff)
gnu: Add rust-tower-http-0.4.
* gnu/packages/crates-web.scm (rust-tower-http-0.4): New variable. Change-Id: I9bc13f74d5f23f42a271aacf3d3ed1c31f78c362 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-web.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 233ba07ed5..3fe987e5a6 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2023 Steve George <steve@futurile.net>
;;; Copyright © 2023 VÖRÖSKŐI András <voroskoi@gmail.com>
;;; Copyright © 2024 Wilko Meyer <w@wmeyer.eu>
+;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3582,6 +3583,63 @@ performance, interoperability, and flexibility.")
robust clients and servers.")
(license license:expat)))
+(define-public rust-tower-http-0.4
+ (package
+ (name "rust-tower-http")
+ (version "0.4.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tower-http" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0h0i2flrw25zwxv72sifq4v5mwcb030spksy7r2a4xl2d4fvpib1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags (list "--release"
+ ;; Not the doc tests.
+ "--lib" "--bins" "--tests")
+ #:cargo-inputs (("rust-async-compression" ,rust-async-compression-0.4)
+ ("rust-base64" ,rust-base64-0.21)
+ ("rust-bitflags" ,rust-bitflags-2)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-http-body" ,rust-http-body-0.4)
+ ("rust-http-range-header" ,rust-http-range-header-0.3)
+ ("rust-httpdate" ,rust-httpdate-1)
+ ("rust-iri-string" ,rust-iri-string-0.7)
+ ("rust-mime" ,rust-mime-0.3)
+ ("rust-mime-guess" ,rust-mime-guess-2)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-util" ,rust-tokio-util-0.7)
+ ("rust-tower" ,rust-tower-0.4)
+ ("rust-tower-layer" ,rust-tower-layer-0.3)
+ ("rust-tower-service" ,rust-tower-service-0.3)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-uuid" ,rust-uuid-1))
+ #:cargo-development-inputs
+ (("rust-brotli" ,rust-brotli-3)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-flate2" ,rust-flate2-1)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-hyper" ,rust-hyper-0.14)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tower" ,rust-tower-0.4)
+ ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)
+ ("rust-uuid" ,rust-uuid-1)
+ ("rust-zstd" ,rust-zstd-0.12))))
+ (home-page "https://github.com/tower-rs/tower-http")
+ (synopsis "Tower middleware and utilities for HTTP clients and servers")
+ (description "This package provides the tower middleware and utilities for
+HTTP clients and servers.")
+ (license license:expat)))
+
(define-public rust-tower-layer-0.3
(package
(name "rust-tower-layer")