Subject: [bug#69170] [PATCH rust-team 17/46] gnu: Add rust-tonic-build-0.10.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:30 +0100

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

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

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 6f953e7aca..60e0d78f8d 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3582,6 +3582,30 @@ (define-public rust-tiny-http-0.6
         ("rust-openssl" ,rust-openssl-0.10)
         ("rust-url" ,rust-url-1))))))
 
+(define-public rust-tonic-build-0.10
+  (package
+    (name "rust-tonic-build")
+    (version "0.10.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tonic-build" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "129qd12ka65h5f1dzi5mrlz6wndi0pfx1320lawq51f18k01y0lx"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-prettyplease" ,rust-prettyplease-0.2)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-prost-build" ,rust-prost-build-0.12)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/hyperium/tonic")
+    (synopsis "Codegen module of @code{tonic} gRPC implementation")
+    (description "Codegen module of @code{tonic} @code{gRPC} implementation.")
+    (license license:expat)))
+
 (define-public rust-tonic-0.6
   (package
     (name "rust-tonic")
-- 
2.41.0