2020-07-10 12:31:01 -07:00
|
|
|
[package]
|
|
|
|
name = "zebra-utils"
|
2024-02-23 15:28:44 -08:00
|
|
|
version = "1.0.0-beta.35"
|
2020-07-10 12:31:01 -07:00
|
|
|
authors = ["Zcash Foundation <zebra@zfnd.org>"]
|
2023-06-13 01:46:01 -07:00
|
|
|
description = "Developer tools for Zebra maintenance and testing"
|
2020-07-10 12:31:01 -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"
|
2023-01-17 18:11:15 -08:00
|
|
|
|
2023-06-13 01:46:01 -07:00
|
|
|
# zebra-utils has a separate README file
|
|
|
|
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 = ["command-line-utilities", "cryptography::cryptocurrencies"]
|
|
|
|
|
2023-06-21 13:44:53 -07:00
|
|
|
# Zebra is only supported on the latest stable Rust version. See the README for details.
|
|
|
|
# Any Zebra release can break compatibility with older Rust versions.
|
2023-12-11 16:44:15 -08:00
|
|
|
rust-version = "1.73"
|
2023-06-21 13:44:53 -07:00
|
|
|
|
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-12-14 15:19:35 -08:00
|
|
|
[[bin]]
|
|
|
|
name = "scanning-results-reader"
|
|
|
|
path = "src/bin/scanning-results-reader/main.rs"
|
|
|
|
required-features = ["shielded-scan"]
|
|
|
|
|
2024-03-14 08:04:19 -07:00
|
|
|
[[bin]]
|
|
|
|
name = "openapi-generator"
|
|
|
|
path = "src/bin/openapi-generator/main.rs"
|
|
|
|
required-features = ["openapi-generator"]
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
2023-12-14 15:19:35 -08:00
|
|
|
shielded-scan = [
|
|
|
|
"itertools",
|
|
|
|
"jsonrpc",
|
|
|
|
"zcash_primitives",
|
|
|
|
"zcash_client_backend",
|
|
|
|
"zebra-scan"
|
|
|
|
]
|
|
|
|
|
2024-03-14 08:04:19 -07:00
|
|
|
openapi-generator = [
|
|
|
|
"zebra-rpc",
|
|
|
|
"syn",
|
|
|
|
"quote",
|
|
|
|
"serde_yaml",
|
|
|
|
"serde"
|
|
|
|
]
|
|
|
|
|
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"
|
2024-01-30 06:00:28 -08:00
|
|
|
serde_json = "1.0.113"
|
2022-05-31 20:53:51 -07:00
|
|
|
tracing-error = "0.2.0"
|
2023-11-26 19:26:29 -08:00
|
|
|
tracing-subscriber = "0.3.18"
|
2024-02-14 04:24:33 -08:00
|
|
|
thiserror = "1.0.57"
|
2020-07-25 00:53:00 -07:00
|
|
|
|
2024-02-23 15:28:44 -08:00
|
|
|
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.35" }
|
|
|
|
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.35" }
|
|
|
|
zebra-scan = { path = "../zebra-scan", version = "0.1.0-alpha.4", optional = true }
|
2023-06-13 01:46:01 -07:00
|
|
|
|
|
|
|
# These crates are needed for the block-template-to-proposal binary
|
2024-02-23 15:28:44 -08:00
|
|
|
zebra-rpc = { path = "../zebra-rpc", version = "1.0.0-beta.35", optional = true }
|
2023-04-26 16:35:53 -07:00
|
|
|
|
|
|
|
# These crates are needed for the zebra-checkpoints binary
|
2024-01-30 06:00:28 -08:00
|
|
|
itertools = { version = "0.12.1", optional = true }
|
2023-04-26 16:35:53 -07:00
|
|
|
|
2023-03-27 18:40:54 -07:00
|
|
|
# These crates are needed for the search-issue-refs binary
|
2024-01-24 14:36:32 -08:00
|
|
|
regex = { version = "1.10.3", optional = true }
|
2023-07-20 17:33:41 -07:00
|
|
|
# Avoid default openssl dependency to reduce the dependency tree and security alerts.
|
2024-02-06 19:18:52 -08:00
|
|
|
reqwest = { version = "0.11.24", default-features = false, features = ["rustls-tls"], 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
|
2024-02-06 19:18:52 -08:00
|
|
|
tokio = { version = "1.36.0", features = ["full"], optional = true }
|
2023-12-14 15:19:35 -08:00
|
|
|
|
2024-01-08 13:01:16 -08:00
|
|
|
jsonrpc = { version = "0.17.0", optional = true }
|
2023-12-14 15:19:35 -08:00
|
|
|
|
|
|
|
zcash_primitives = { version = "0.13.0-rc.1", optional = true }
|
|
|
|
zcash_client_backend = {version = "0.10.0-rc.1", optional = true}
|
2024-03-14 08:04:19 -07:00
|
|
|
|
|
|
|
# For the openapi generator
|
|
|
|
syn = { version = "2.0.52", features = ["full"], optional = true }
|
|
|
|
quote = { version = "1.0.35", optional = true }
|
|
|
|
serde_yaml = { version = "0.9.32", optional = true }
|
|
|
|
serde = { version = "1.0.196", features = ["serde_derive"], optional = true }
|