From d2b15a85ba72f5f939ba57783178fbe949ec3c54 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 21:59:54 +0200 Subject: [PATCH] gnu: Add rust-tonic-0.8. * gnu/packages/crates-web.scm (rust-tonic-0.8): New variable. Change-Id: I8efcf06733d8962dbacc1ad71793e71f69c94a69 --- gnu/packages/crates-web.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 60c735efa7..ac0ab06afc 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -4058,6 +4058,58 @@ alike. It's completely modular, and built directly for @code{async/await}.") on high performance, interoperability, and flexibility.") (license license:expat))) +(define-public rust-tonic-0.8 + (package + (inherit rust-tonic-0.10) + (name "rust-tonic") + (version "0.8.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "tonic" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1yymp2xi1p60g81p5jfaybcawpfkb01vqvzqn4cyz6wj7fnry8cg")))) + (arguments + `(#:cargo-test-flags '("--release" "--lib" "--bins" "--tests") + #:cargo-inputs (("rust-async-stream" ,rust-async-stream-0.3) + ("rust-async-trait" ,rust-async-trait-0.1) + ("rust-axum" ,rust-axum-0.6) + ("rust-base64" ,rust-base64-0.13) + ("rust-bytes" ,rust-bytes-1) + ("rust-flate2" ,rust-flate2-1) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-h2" ,rust-h2-0.3) + ("rust-http" ,rust-http-0.2) + ("rust-http-body" ,rust-http-body-0.4) + ("rust-hyper" ,rust-hyper-0.14) + ("rust-hyper-timeout" ,rust-hyper-timeout-0.4) + ("rust-percent-encoding" ,rust-percent-encoding-2) + ("rust-pin-project" ,rust-pin-project-1) + ("rust-prost" ,rust-prost-0.11) + ("rust-prost-derive" ,rust-prost-derive-0.11) + ("rust-rustls-native-certs" ,rust-rustls-native-certs-0.6) + ("rust-rustls-pemfile" ,rust-rustls-pemfile-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-rustls" ,rust-tokio-rustls-0.23) + ("rust-tokio-stream" ,rust-tokio-stream-0.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-tracing-futures" ,rust-tracing-futures-0.2) + ("rust-webpki-roots" ,rust-webpki-roots-0.22)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-quickcheck-macros" ,rust-quickcheck-macros-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tower" ,rust-tower-0.4)))))) + (define-public rust-tonic-0.6 (package (inherit rust-tonic-0.10)