Skip to content

Commit

Permalink
build(crate): Add a new zebra-grpc crate (#8167)
Browse files Browse the repository at this point in the history
* add `zebra-grpc` crate

* add missing fields

* convert to a lib

* add zebra-scan and tonic as depenency
  • Loading branch information
oxarbitrage authored Jan 23, 2024
1 parent 5bd8593 commit 001555b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"zebra-test",
"zebra-utils",
"zebra-scan",
"zebra-grpc",
"tower-batch-control",
"tower-fallback",
]
Expand Down
21 changes: 21 additions & 0 deletions zebra-grpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions zebra-grpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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")]

0 comments on commit 001555b

Please sign in to comment.