gnu: Add rust-tonic-web-0.12.

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

Change-Id: I5dee1393f90770a9677b19a346fd90e763cb67b2
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
Jordan Moore 2025-02-05 19:31:21 +01:00 committed by Danny Milosavljevic
parent 85da4a23e6
commit 9c67b1ce19
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -11,6 +11,7 @@
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Nguyễn Gia Phong <mcsinyx@disroot.org> ;;; Copyright © 2024 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2024 Jordan Moore <lockbox@struct.foo>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -6567,6 +6568,38 @@ on high performance, interoperability, and flexibility.")
"This package provides a codegen module of `tonic` @code{gRPC} implementation.") "This package provides a codegen module of `tonic` @code{gRPC} implementation.")
(license license:expat))) (license license:expat)))
(define-public rust-tonic-web-0.12
(package
(name "rust-tonic-web")
(version "0.12.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "tonic-web" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0n2bhgs57kvqsk1z2fr1izcrrrbnfgda0pjargf3dmqsh0hdv6aj"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-base64" ,rust-base64-0.22)
("rust-bytes" ,rust-bytes-1)
("rust-http" ,rust-http-1)
("rust-http-body" ,rust-http-body-1)
("rust-http-body-util" ,rust-http-body-util-0.1)
("rust-pin-project" ,rust-pin-project-1)
("rust-tokio-stream" ,rust-tokio-stream-0.1)
("rust-tonic" ,rust-tonic-0.12)
("rust-tower-http" ,rust-tower-http-0.5)
("rust-tower-layer" ,rust-tower-layer-0.3)
("rust-tower-service" ,rust-tower-service-0.3)
("rust-tracing" ,rust-tracing-0.1))))
(home-page "https://github.com/hyperium/tonic")
(synopsis "grpc-web protocol translation for tonic services")
(description
"This package provides grpc-web protocol translation for tonic
services.")
(license license:expat)))
(define-public rust-tower-0.5 (define-public rust-tower-0.5
(package (package
(name "rust-tower") (name "rust-tower")