2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-rpc"
|
2023-10-16 16:04:33 -07:00
|
|
|
version = "1.0.0-beta.30"
|
2019-10-08 09:25:59 -07:00
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>"]
|
2023-06-13 01:46:01 -07:00
|
|
|
description = "A Zebra JSON Remote Procedure Call (JSON-RPC) interface"
|
2019-10-08 09:25:59 -07:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-06-13 01:46:01 -07:00
|
|
|
repository = "https://github.com/ZcashFoundation/zebra"
|
Enforce Rust edition 2021 (#3332)
* Rust edition 2021: zebra-network, cargo fix --edition and clippy --fix
* Rust edition 2021: zebra-chain, cargo fix --edition
* Rust edition 2021: tower-batch, cargo fix --edition
* Rust edition 2021: tower-fallback, cargo fix --edition
* Rust edition 2021: zebra-client, cargo fix --edition
* Rust edition 2021: zebra-consensus, cargo fix --edition
* Rust edition 2021: zebra-rpc, cargo fix --edition
* Rust edition 2021: zebra-state, cargo fix --edition
* Rust edition 2021: zebra-state, cargo fix --edition
* Rust edition 2021: zebra-test, cargo fix --edition
* Rust edition 2021: zebra-utils, cargo fix --edition
* Rust edition 2021: zebrad, cargo fix --edition
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-14 04:10:18 -08:00
|
|
|
edition = "2021"
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2023-06-13 01:46:01 -07:00
|
|
|
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 = ["asynchronous", "cryptography::cryptocurrencies", "encoding", "network-programming"]
|
2019-08-29 14:46:54 -07:00
|
|
|
|
2022-03-30 11:23:55 -07:00
|
|
|
[features]
|
|
|
|
default = []
|
2022-11-08 23:36:10 -08:00
|
|
|
|
|
|
|
# Production features that activate extra dependencies, or extra features in dependencies
|
|
|
|
|
|
|
|
# Experimental mining RPC support
|
|
|
|
getblocktemplate-rpcs = [
|
2022-12-01 13:57:22 -08:00
|
|
|
"rand",
|
2023-02-02 18:26:58 -08:00
|
|
|
"zcash_address",
|
2022-11-08 23:36:10 -08:00
|
|
|
"zebra-consensus/getblocktemplate-rpcs",
|
|
|
|
"zebra-state/getblocktemplate-rpcs",
|
|
|
|
"zebra-node-services/getblocktemplate-rpcs",
|
|
|
|
"zebra-chain/getblocktemplate-rpcs",
|
|
|
|
]
|
2022-11-02 20:25:01 -07:00
|
|
|
|
|
|
|
# Test-only features
|
2022-11-08 23:36:10 -08:00
|
|
|
proptest-impl = [
|
|
|
|
"proptest",
|
|
|
|
"zebra-consensus/proptest-impl",
|
|
|
|
"zebra-state/proptest-impl",
|
2023-01-19 01:12:31 -08:00
|
|
|
"zebra-network/proptest-impl",
|
2022-11-08 23:36:10 -08:00
|
|
|
"zebra-chain/proptest-impl",
|
|
|
|
]
|
2022-03-30 11:23:55 -07:00
|
|
|
|
2019-08-29 14:46:54 -07:00
|
|
|
[dependencies]
|
2023-09-20 16:41:05 -07:00
|
|
|
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std"] }
|
2023-04-02 21:00:53 -07:00
|
|
|
futures = "0.3.28"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
|
|
|
# lightwalletd sends JSON-RPC requests over HTTP 1.1
|
2023-06-27 17:29:07 -07:00
|
|
|
hyper = { version = "0.14.27", features = ["http1", "server"] }
|
2022-02-22 03:26:29 -08:00
|
|
|
|
|
|
|
jsonrpc-core = "18.0.0"
|
|
|
|
jsonrpc-derive = "18.0.0"
|
|
|
|
jsonrpc-http-server = "18.0.0"
|
2023-06-29 16:19:25 -07:00
|
|
|
num_cpus = "1.16.0"
|
2022-09-03 22:03:15 -07:00
|
|
|
|
2022-03-25 05:25:31 -07:00
|
|
|
# zebra-rpc needs the preserve_order feature in serde_json, which is a dependency of jsonrpc-core
|
2023-09-18 11:42:35 -07:00
|
|
|
serde_json = { version = "1.0.107", features = ["preserve_order"] }
|
2023-10-09 16:06:26 -07:00
|
|
|
indexmap = { version = "2.0.1", features = ["serde"] }
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2023-10-09 14:26:41 -07:00
|
|
|
tokio = { version = "1.33.0", features = ["time", "rt-multi-thread", "macros", "tracing"] }
|
2022-06-21 10:12:19 -07:00
|
|
|
tower = "0.4.13"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2023-10-16 13:13:38 -07:00
|
|
|
tracing = "0.1.39"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2022-03-08 01:14:21 -08:00
|
|
|
hex = { version = "0.4.3", features = ["serde"] }
|
2023-08-28 21:01:15 -07:00
|
|
|
serde = { version = "1.0.188", features = ["serde_derive"] }
|
2022-02-28 19:32:32 -08:00
|
|
|
|
2022-12-01 13:57:22 -08:00
|
|
|
# Experimental feature getblocktemplate-rpcs
|
2023-06-27 08:32:30 -07:00
|
|
|
rand = { version = "0.8.5", optional = true }
|
2023-02-02 18:26:58 -08:00
|
|
|
# ECC deps used by getblocktemplate-rpcs feature
|
2023-07-17 15:06:27 -07:00
|
|
|
zcash_address = { version = "0.3.0", optional = true }
|
2022-12-01 13:57:22 -08:00
|
|
|
|
|
|
|
# Test-only feature proptest-impl
|
2023-10-09 14:27:12 -07:00
|
|
|
proptest = { version = "1.3.1", optional = true }
|
2022-03-30 11:23:55 -07:00
|
|
|
|
2023-10-16 16:04:33 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.30", features = ["json-conversion"] }
|
|
|
|
zebra-consensus = { path = "../zebra-consensus", version = "1.0.0-beta.30" }
|
|
|
|
zebra-network = { path = "../zebra-network", version = "1.0.0-beta.30" }
|
|
|
|
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.30" }
|
|
|
|
zebra-script = { path = "../zebra-script", version = "1.0.0-beta.30" }
|
|
|
|
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.30" }
|
2022-08-28 10:08:27 -07:00
|
|
|
|
2022-02-28 19:32:32 -08:00
|
|
|
[dev-dependencies]
|
2023-10-09 14:27:12 -07:00
|
|
|
insta = { version = "1.33.0", features = ["redactions", "json", "ron"] }
|
2022-12-15 07:33:00 -08:00
|
|
|
|
2023-10-09 14:27:12 -07:00
|
|
|
proptest = "1.3.1"
|
2022-06-14 23:43:20 -07:00
|
|
|
|
2023-09-05 19:44:01 -07:00
|
|
|
thiserror = "1.0.48"
|
2023-10-09 14:26:41 -07:00
|
|
|
tokio = { version = "1.33.0", features = ["full", "tracing", "test-util"] }
|
2022-02-28 19:32:32 -08:00
|
|
|
|
2022-03-03 23:00:24 -08:00
|
|
|
zebra-chain = { path = "../zebra-chain", features = ["proptest-impl"] }
|
2023-01-19 01:12:31 -08:00
|
|
|
zebra-consensus = { path = "../zebra-consensus", features = ["proptest-impl"] }
|
|
|
|
zebra-network = { path = "../zebra-network", features = ["proptest-impl"] }
|
2022-03-11 05:58:22 -08:00
|
|
|
zebra-state = { path = "../zebra-state", features = ["proptest-impl"] }
|
2023-01-19 01:12:31 -08:00
|
|
|
|
2022-11-07 09:37:50 -08:00
|
|
|
zebra-test = { path = "../zebra-test" }
|