build(crate): Add a new `zebra-grpc` crate (#8167)

* add `zebra-grpc` crate

* add missing fields

* convert to a lib

* add zebra-scan and tonic as depenency
This commit is contained in:
Alfredo Garcia 2024-01-23 20:07:32 -03:00 committed by GitHub
parent 5bd8593367
commit 001555b134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 35 additions and 0 deletions

View File

@ -5762,6 +5762,14 @@ dependencies = [
"zebra-test",
]
[[package]]
name = "zebra-grpc"
version = "0.1.0-alpha.1"
dependencies = [
"tonic",
"zebra-scan",
]
[[package]]
name = "zebra-network"
version = "1.0.0-beta.34"

View File

@ -11,6 +11,7 @@ members = [
"zebra-test",
"zebra-utils",
"zebra-scan",
"zebra-grpc",
"tower-batch-control",
"tower-fallback",
]

21
zebra-grpc/Cargo.toml Normal file
View File

@ -0,0 +1,21 @@
[package]
name = "zebra-grpc"
version = "0.1.0-alpha.1"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "Zebra gRPC interface"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZcashFoundation/zebra"
edition = "2021"
readme = "../README.md"
homepage = "https://zfnd.org/zebra/"
# crates.io is limited to 5 keywords and categories
keywords = ["zebra", "zcash"]
# Must be one of <https://crates.io/category_slugs>
categories = ["cryptography::cryptocurrencies"]
[dependencies]
tonic = "0.10.2"
zebra-scan = { path = "../zebra-scan", version = "0.1.0-alpha.1" }

5
zebra-grpc/src/lib.rs Normal file
View File

@ -0,0 +1,5 @@
//! Zebra gRPC interface.
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
#![doc(html_root_url = "https://docs.rs/zebra_grpc")]