2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-rpc"
|
2023-06-07 20:44:28 -07:00
|
|
|
version = "1.0.0-beta.25"
|
2019-10-08 09:25:59 -07:00
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
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
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
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-06-05 19:04:52 -07:00
|
|
|
chrono = { version = "0.4.26", 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-04-16 18:35:08 -07:00
|
|
|
hyper = { version = "0.14.26", 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"
|
2022-12-21 13:08:08 -08:00
|
|
|
num_cpus = "1.15.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-04-13 18:21:50 -07:00
|
|
|
serde_json = { version = "1.0.96", features = ["preserve_order"] }
|
2023-03-27 18:41:36 -07:00
|
|
|
indexmap = { version = "1.9.3", features = ["serde"] }
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2023-05-29 14:42:30 -07:00
|
|
|
tokio = { version = "1.28.2", 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
|
|
|
|
2022-10-12 23:46:27 -07:00
|
|
|
tracing = "0.1.37"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2022-03-08 01:14:21 -08:00
|
|
|
hex = { version = "0.4.3", features = ["serde"] }
|
2023-05-16 16:54:09 -07:00
|
|
|
serde = { version = "1.0.163", features = ["serde_derive"] }
|
2022-02-28 19:32:32 -08:00
|
|
|
|
2022-12-01 13:57:22 -08:00
|
|
|
# Experimental feature getblocktemplate-rpcs
|
|
|
|
rand = { version = "0.8.5", package = "rand", optional = true }
|
2023-02-02 18:26:58 -08:00
|
|
|
# ECC deps used by getblocktemplate-rpcs feature
|
2023-04-17 20:44:03 -07:00
|
|
|
zcash_address = { version = "0.2.1", optional = true }
|
2022-12-01 13:57:22 -08:00
|
|
|
|
|
|
|
# Test-only feature proptest-impl
|
2023-05-25 13:44:16 -07:00
|
|
|
proptest = { version = "1.2.0", optional = true }
|
2022-03-30 11:23:55 -07:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain", features = ["json-conversion"] }
|
2022-11-03 20:57:08 -07:00
|
|
|
zebra-consensus = { path = "../zebra-consensus" }
|
2022-08-28 10:08:27 -07:00
|
|
|
zebra-network = { path = "../zebra-network" }
|
|
|
|
zebra-node-services = { path = "../zebra-node-services" }
|
2022-11-07 09:37:50 -08:00
|
|
|
zebra-script = { path = "../zebra-script" }
|
2022-08-28 10:08:27 -07:00
|
|
|
zebra-state = { path = "../zebra-state" }
|
|
|
|
|
2022-02-28 19:32:32 -08:00
|
|
|
[dev-dependencies]
|
2023-03-23 11:25:07 -07:00
|
|
|
insta = { version = "1.29.0", features = ["redactions", "json", "ron"] }
|
2022-12-15 07:33:00 -08:00
|
|
|
|
2023-05-25 13:44:16 -07:00
|
|
|
proptest = "1.2.0"
|
2022-06-14 23:43:20 -07:00
|
|
|
|
2023-03-20 12:07:11 -07:00
|
|
|
thiserror = "1.0.40"
|
2023-05-29 14:42:30 -07:00
|
|
|
tokio = { version = "1.28.2", 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" }
|