2020-07-10 12:31:01 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-utils"
|
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
2023-06-07 20:44:28 -07:00
|
|
|
version = "1.0.0-beta.25"
|
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"
|
2023-01-17 18:11:15 -08:00
|
|
|
|
|
|
|
[[bin]]
|
2023-04-26 16:35:53 -07:00
|
|
|
name = "zebra-checkpoints"
|
2023-01-17 18:11:15 -08:00
|
|
|
# this setting is required for Zebra's Docker build caches
|
2023-04-26 16:35:53 -07:00
|
|
|
path = "src/bin/zebra-checkpoints/main.rs"
|
|
|
|
required-features = ["zebra-checkpoints"]
|
2023-01-17 18:11:15 -08:00
|
|
|
|
2023-03-27 18:40:54 -07:00
|
|
|
[[bin]]
|
|
|
|
name = "search-issue-refs"
|
|
|
|
path = "src/bin/search-issue-refs/main.rs"
|
|
|
|
required-features = ["search-issue-refs"]
|
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
[[bin]]
|
|
|
|
name = "block-template-to-proposal"
|
|
|
|
# this setting is required for Zebra's Docker build caches
|
|
|
|
path = "src/bin/block-template-to-proposal/main.rs"
|
|
|
|
required-features = ["getblocktemplate-rpcs"]
|
|
|
|
|
2023-01-17 18:11:15 -08:00
|
|
|
[features]
|
|
|
|
default = []
|
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
# Each binary has a feature that activates the extra dependencies it needs
|
2023-03-27 18:40:54 -07:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
zebra-checkpoints = [
|
|
|
|
"itertools",
|
|
|
|
"tokio",
|
|
|
|
"zebra-chain/json-conversion",
|
|
|
|
"zebra-node-services/rpc-client"
|
|
|
|
]
|
|
|
|
|
|
|
|
search-issue-refs = [
|
|
|
|
"regex",
|
|
|
|
"reqwest",
|
|
|
|
"tokio"
|
|
|
|
]
|
2023-01-17 18:11:15 -08:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
# block-template-to-proposal uses the experimental mining RPC support feature name
|
2023-01-17 18:11:15 -08:00
|
|
|
getblocktemplate-rpcs = [
|
|
|
|
"zebra-rpc/getblocktemplate-rpcs",
|
|
|
|
"zebra-node-services/getblocktemplate-rpcs",
|
|
|
|
"zebra-chain/getblocktemplate-rpcs",
|
|
|
|
]
|
|
|
|
|
2020-07-10 12:31:01 -07:00
|
|
|
[dependencies]
|
2022-09-26 15:23:59 -07:00
|
|
|
color-eyre = "0.6.2"
|
2022-08-03 16:42:50 -07:00
|
|
|
# This is a transitive dependency via color-eyre.
|
|
|
|
# Enable a feature that makes tinyvec compile much faster.
|
2022-08-04 15:03:24 -07:00
|
|
|
tinyvec = { version = "1.6.0", features = ["rustc_1_55"] }
|
2022-08-03 16:42:50 -07:00
|
|
|
|
|
|
|
structopt = "0.3.26"
|
2022-03-06 18:07:25 -08:00
|
|
|
hex = "0.4.3"
|
2023-04-13 18:21:50 -07:00
|
|
|
serde_json = "1.0.96"
|
2022-05-31 20:53:51 -07:00
|
|
|
tracing-error = "0.2.0"
|
2023-04-25 09:08:44 -07:00
|
|
|
tracing-subscriber = "0.3.17"
|
2023-03-20 12:07:11 -07:00
|
|
|
thiserror = "1.0.40"
|
2020-07-25 00:53:00 -07:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
zebra-node-services = { path = "../zebra-node-services" }
|
|
|
|
zebra-chain = { path = "../zebra-chain" }
|
|
|
|
|
|
|
|
# These crates are needed for the zebra-checkpoints binary
|
|
|
|
itertools = { version = "0.10.5", optional = true }
|
|
|
|
|
2023-03-27 18:40:54 -07:00
|
|
|
# These crates are needed for the search-issue-refs binary
|
2023-06-05 22:41:25 -07:00
|
|
|
regex = { version = "1.8.4", optional = true }
|
2023-05-17 15:09:35 -07:00
|
|
|
reqwest = { version = "0.11.18", optional = true }
|
2023-03-27 18:40:54 -07:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
# These crates are needed for the zebra-checkpoints and search-issue-refs binaries
|
2023-05-29 14:42:30 -07:00
|
|
|
tokio = { version = "1.28.2", features = ["full"], optional = true }
|
2023-01-17 18:11:15 -08:00
|
|
|
|
2023-04-26 16:35:53 -07:00
|
|
|
# These crates are needed for the block-template-to-proposal binary
|
2023-01-17 18:11:15 -08:00
|
|
|
zebra-rpc = { path = "../zebra-rpc", optional = true }
|