diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-12-23 19:34:42 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2025-01-06 12:16:06 +0200 |
commit | eb4f4a77457db5f93f3a94f3fccabd743b89d071 (patch) | |
tree | 534ac58682f873604f74485d7c773cff04022721 /gnu/packages/crates-web.scm | |
parent | a04e9eade31594b73f6b1f366e65dc517d77cac3 (diff) |
gnu: Add rust-tower-0.5.
* gnu/packages/crates-web.scm (rust-tower-0.5): New variable.
(rust-tower-0.4): Inherit from rust-tower-0.5.
Change-Id: I218881a06ad3379c383e9de3d3ef16a6029cca80
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r-- | gnu/packages/crates-web.scm | 63 |
1 files changed, 55 insertions, 8 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index f6ac4fbcaa..585ab495a9 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -6085,8 +6085,62 @@ on high performance, interoperability, and flexibility.") (description "Codegen module of @code{tonic} @code{gRPC} implementation.") (license license:expat))) +(define-public rust-tower-0.5 + (package + (name "rust-tower") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "tower" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ybmd59nm4abl9bsvy6rx31m4zvzp5rja2slzpn712y9b68ssffh")))) + (build-system cargo-build-system) + (arguments + (list #:cargo-test-flags + '(list "--" + "--skip=builder::ServiceBuilder<L>::check_clone" + "--skip=builder::ServiceBuilder<L>::check_service" + "--skip=builder::ServiceBuilder<L>::check_service_clone") + #:cargo-inputs + (list rust-futures-core-0.3 + rust-futures-util-0.3 + rust-hdrhistogram-7 + rust-indexmap-2 + rust-pin-project-lite-0.2 + rust-slab-0.4 + rust-sync-wrapper-1 + rust-tokio-1 + rust-tokio-stream-0.1 + rust-tokio-util-0.7 + rust-tower-layer-0.3 + rust-tower-service-0.3 + rust-tracing-0.1) + #:cargo-development-inputs + (list rust-futures-0.3 + rust-hdrhistogram-7 + rust-http-1 + rust-lazy-static-1 + rust-pin-project-lite-0.2 + rust-quickcheck-1 + rust-rand-0.8 + rust-tokio-1 + rust-tokio-stream-0.1 + rust-tokio-test-0.4 + rust-tower-test-0.4 + rust-tracing-0.1 + rust-tracing-subscriber-0.3))) + (home-page "https://github.com/tower-rs/tower") + (synopsis "Library for building clients and servers") + (description + "Tower is a library of modular and reusable components for building +robust clients and servers.") + (license license:expat))) + (define-public rust-tower-0.4 (package + (inherit rust-tower-0.5) (name "rust-tower") (version "0.4.13") (source @@ -6096,7 +6150,6 @@ on high performance, interoperability, and flexibility.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "073wncyqav4sak1p755hf6vl66njgfc1z1g1di9rxx3cvvh9pymq")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; no method named `map_request` found for struct `ServiceBuilder` #:cargo-inputs @@ -6124,13 +6177,7 @@ on high performance, interoperability, and flexibility.") ("rust-tokio-stream" ,rust-tokio-stream-0.1) ("rust-tokio-test" ,rust-tokio-test-0.4) ("rust-tower-test" ,rust-tower-test-0.4) - ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)))) - (home-page "https://github.com/tower-rs/tower") - (synopsis "Library for building clients and servers") - (description - "Tower is a library of modular and reusable components for building -robust clients and servers.") - (license license:expat))) + ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)))))) (define-public rust-tower-http-0.5 (package |