Subject: [PATCH rust-team v2 007/117] gnu: Add rust-tonic-0.9.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:54:33 +0200

* gnu/packages/crates-web.scm (rust-tonic-0.9): Add variable.

Change-Id: I43391a9e3a9dbbd833756a18a34012704563ed98
---
 gnu/packages/crates-web.scm | 109 ++++++++++++++++++++++++++----------
 1 file changed, 80 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index eab91e7139..7107dc7e11 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -5350,6 +5350,56 @@ (define-public rust-tonic-0.10
 on high performance, interoperability, and flexibility.")
     (license license:expat)))
 
+(define-public rust-tonic-0.9
+  (package
+    (inherit rust-tonic-0.10)
+    (name "rust-tonic")
+    (version "0.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tonic" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0nlx35lvah5hdcp6lg1d6dlprq0zz8ijj6f727szfcv479m6d0ih"))))
+    (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.21)
+        ("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-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.24)
+        ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+        ("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-webpki-roots" ,rust-webpki-roots-0.23))
+       #: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.8
   (package
     (inherit rust-tonic-0.10)
@@ -5364,35 +5414,36 @@ (define-public rust-tonic-0.8
         (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-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)
-- 
2.41.0