2019-08-29 14:46:54 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-rpc"
|
2022-12-06 13:35:44 -08:00
|
|
|
version = "1.0.0-beta.18"
|
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",
|
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",
|
|
|
|
"proptest-derive",
|
|
|
|
"zebra-consensus/proptest-impl",
|
|
|
|
"zebra-state/proptest-impl",
|
|
|
|
"zebra-chain/proptest-impl",
|
|
|
|
]
|
2022-03-30 11:23:55 -07:00
|
|
|
|
2019-08-29 14:46:54 -07:00
|
|
|
[dependencies]
|
2022-11-16 08:47:45 -08:00
|
|
|
chrono = { version = "0.4.23", default-features = false, features = ["clock", "std"] }
|
2022-10-21 12:02:04 -07:00
|
|
|
futures = "0.3.25"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
|
|
|
# lightwalletd sends JSON-RPC requests over HTTP 1.1
|
2022-11-08 14:55:22 -08:00
|
|
|
hyper = { version = "0.14.23", 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
|
2022-12-19 12:42:27 -08:00
|
|
|
serde_json = { version = "1.0.91", features = ["preserve_order"] }
|
2022-11-21 18:39:18 -08:00
|
|
|
indexmap = { version = "1.9.2", features = ["serde"] }
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2022-12-07 14:38:28 -08:00
|
|
|
tokio = { version = "1.23.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
|
|
|
|
2022-10-12 23:46:27 -07:00
|
|
|
tracing = "0.1.37"
|
2022-03-06 18:07:25 -08:00
|
|
|
tracing-futures = "0.2.5"
|
2022-02-22 03:26:29 -08:00
|
|
|
|
2022-03-08 01:14:21 -08:00
|
|
|
hex = { version = "0.4.3", features = ["serde"] }
|
2022-12-27 11:46:22 -08:00
|
|
|
serde = { version = "1.0.152", 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 }
|
|
|
|
|
|
|
|
# Test-only feature proptest-impl
|
2022-03-30 11:23:55 -07:00
|
|
|
proptest = { version = "0.10.1", optional = true }
|
|
|
|
proptest-derive = { version = "0.3.0", optional = true }
|
|
|
|
|
2022-08-28 10:08:27 -07:00
|
|
|
zebra-chain = { path = "../zebra-chain" }
|
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]
|
2022-12-15 07:33:00 -08:00
|
|
|
insta = { version = "1.23.0", features = ["redactions", "json", "ron"] }
|
|
|
|
|
2022-03-03 23:00:24 -08:00
|
|
|
proptest = "0.10.1"
|
2022-03-30 11:23:55 -07:00
|
|
|
proptest-derive = "0.3.0"
|
2022-06-14 23:43:20 -07:00
|
|
|
|
2022-12-19 12:42:02 -08:00
|
|
|
thiserror = "1.0.38"
|
2022-12-07 14:38:28 -08:00
|
|
|
tokio = { version = "1.23.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"] }
|
2022-03-11 05:58:22 -08:00
|
|
|
zebra-state = { path = "../zebra-state", features = ["proptest-impl"] }
|
2022-11-07 09:37:50 -08:00
|
|
|
zebra-test = { path = "../zebra-test" }
|