forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
127 lines (103 loc) · 3.75 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[package]
name = "zebra-utils"
version = "1.0.0-beta.40"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "Developer tools for Zebra maintenance and testing"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZcashFoundation/zebra"
edition = "2021"
# 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"]
# 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.
rust-version = "1.73"
[[bin]]
name = "zebra-checkpoints"
# this setting is required for Zebra's Docker build caches
path = "src/bin/zebra-checkpoints/main.rs"
required-features = ["zebra-checkpoints"]
[[bin]]
name = "search-issue-refs"
path = "src/bin/search-issue-refs/main.rs"
required-features = ["search-issue-refs"]
[[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"]
[[bin]]
name = "openapi-generator"
path = "src/bin/openapi-generator/main.rs"
required-features = ["openapi-generator"]
[features]
default = []
# Each binary has a feature that activates the extra dependencies it needs
zebra-checkpoints = [
"itertools",
"tokio",
"zebra-chain/json-conversion",
"zebra-node-services/rpc-client"
]
search-issue-refs = [
"regex",
"reqwest",
"tokio"
]
# block-template-to-proposal uses the experimental mining RPC support feature name
getblocktemplate-rpcs = [
"zebra-rpc/getblocktemplate-rpcs",
"zebra-node-services/getblocktemplate-rpcs",
"zebra-chain/getblocktemplate-rpcs",
]
shielded-scan = [
"itertools",
"jsonrpc",
"zcash_primitives",
"zcash_client_backend",
]
openapi-generator = [
"zebra-rpc",
"syn",
"quote",
"serde_yml",
"serde"
]
[dependencies]
color-eyre = "0.6.3"
# This is a transitive dependency via color-eyre.
# Enable a feature that makes tinyvec compile much faster.
tinyvec = { version = "1.8.0", features = ["rustc_1_55"] }
structopt = "0.3.26"
hex = "0.4.3"
serde_json = "1.0.128"
tracing-error = "0.2.0"
tracing-subscriber = "0.3.18"
thiserror = "1.0.64"
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.40" }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.40" }
# These crates are needed for the block-template-to-proposal binary
zebra-rpc = { path = "../zebra-rpc", version = "1.0.0-beta.40", optional = true }
# These crates are needed for the zebra-checkpoints binary
itertools = { version = "0.13.0", optional = true }
# These crates are needed for the search-issue-refs binary
regex = { version = "1.11.0", optional = true }
# Avoid default openssl dependency to reduce the dependency tree and security alerts.
reqwest = { version = "0.11.26", default-features = false, features = ["rustls-tls"], optional = true }
# These crates are needed for the zebra-checkpoints and search-issue-refs binaries
tokio = { version = "1.40.0", features = ["full"], optional = true }
jsonrpc = { version = "0.18.0", optional = true }
zcash_primitives = { workspace = true, optional = true }
zcash_client_backend = { workspace = true, optional = true }
zcash_protocol.workspace = true
# For the openapi generator
rand = "0.8.5"
syn = { version = "2.0.79", features = ["full"], optional = true }
quote = { version = "1.0.37", optional = true }
serde_yml = { version = "0.0.12", optional = true }
serde = { version = "1.0.210", features = ["serde_derive"], optional = true }
indexmap = "2.5.0"