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

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

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

Change-Id: I74b651a2ff42816af4dc5ecf393d61d8704b9bb1
---
 gnu/packages/crates-web.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 7107dc7e11..68178fdde1 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -5527,6 +5527,31 @@ (define-public rust-tonic-build-0.10
     (description "Codegen module of @code{tonic} @code{gRPC} implementation.")
     (license license:expat)))
 
+(define-public rust-tonic-build-0.9
+  (package
+    (name "rust-tonic-build")
+    (version "0.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tonic-build" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01sbpz52sancgvv5jp1gqz46mz6nzck3m022zrqbnf66qbjamzd6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-prettyplease" ,rust-prettyplease-0.1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-prost-build" ,rust-prost-build-0.11)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/hyperium/tonic")
+    (synopsis "Code generation for the `tonic` gRPC implementation")
+    (description
+      "This package provides code generation for the `tonic` @code{gRPC}
+implementation.")
+    (license license:expat)))
+
 (define-public rust-tower-0.4
   (package
     (name "rust-tower")
-- 
2.41.0