-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathCargo.toml
180 lines (144 loc) · 5.17 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[package]
name = "zebra-chain"
version = "1.0.0-beta.45"
authors = ["Zcash Foundation <[email protected]>"]
description = "Core Zcash data structures"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZcashFoundation/zebra"
edition = "2021"
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 = ["asynchronous", "cryptography::cryptocurrencies", "encoding"]
[features]
default = []
# Production features that activate extra functionality
# Consensus-critical conversion from JSON to Zcash types
json-conversion = [
"serde_json",
]
# Async error handling convenience traits
async-error = [
"tokio",
]
# Mining RPC support
getblocktemplate-rpcs = [
]
# Experimental shielded scanning support
shielded-scan = [
"zcash_client_backend"
]
# Experimental internal miner support
# TODO: Internal miner feature functionality was removed at https://github.com/ZcashFoundation/zebra/issues/8180
# See what was removed at https://github.com/ZcashFoundation/zebra/blob/v1.5.1/zebra-chain/Cargo.toml#L38-L43
# Restore support when conditions are met. https://github.com/ZcashFoundation/zebra/issues/8183
internal-miner = []
# Experimental elasticsearch support
elasticsearch = []
# Test-only features
proptest-impl = [
"proptest",
"proptest-derive",
"rand",
"rand_chacha",
"tokio/tracing",
"zebra-test",
]
bench = ["zebra-test"]
[dependencies]
# Cryptography
bitvec = { workspace = true }
bitflags = { workspace = true }
bitflags-serde-legacy = { workspace = true }
blake2b_simd = { workspace = true }
blake2s_simd = { workspace = true }
bs58 = { workspace = true, features = ["check"] }
byteorder = { workspace = true }
# TODO: Internal miner feature functionality was removed at https://github.com/ZcashFoundation/zebra/issues/8180
# See what was removed at https://github.com/ZcashFoundation/zebra/blob/v1.5.1/zebra-chain/Cargo.toml#L73-L85
# Restore support when conditions are met. https://github.com/ZcashFoundation/zebra/issues/8183
equihash = { workspace = true }
group = { workspace = true }
incrementalmerkletree.workspace = true
jubjub = { workspace = true }
lazy_static = { workspace = true }
tempfile = { workspace = true }
dirs = { workspace = true }
num-integer = { workspace = true }
primitive-types = { workspace = true }
rand_core = { workspace = true }
ripemd = { workspace = true }
# Matches version used by hdwallet
secp256k1 = { workspace = true, features = ["serde"] }
sha2 = { workspace = true, features = ["compress"] }
uint = { workspace = true }
x25519-dalek = { workspace = true, features = ["serde"] }
# ECC deps
halo2 = { package = "halo2_proofs", version = "0.3.0" }
orchard.workspace = true
zcash_encoding.workspace = true
zcash_history.workspace = true
zcash_note_encryption = { workspace = true }
zcash_primitives = { workspace = true, features = ["transparent-inputs"] }
sapling-crypto.workspace = true
zcash_protocol.workspace = true
zcash_address.workspace = true
zcash_transparent.workspace = true
# Time
chrono = { workspace = true, features = ["clock", "std", "serde"] }
humantime = { workspace = true }
# Error Handling & Formatting
static_assertions = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
# Serialization
hex = { workspace = true, features = ["serde"] }
serde = { workspace = true, features = ["serde_derive", "rc"] }
serde_with = { workspace = true }
serde-big-array = { workspace = true }
# Processing
futures = { workspace = true }
itertools = { workspace = true }
rayon = { workspace = true }
# ZF deps
ed25519-zebra = { workspace = true }
redjubjub = { workspace = true }
reddsa = { workspace = true }
# Production feature json-conversion
serde_json = { workspace = true, optional = true }
# Production feature async-error and testing feature proptest-impl
tokio = { workspace = true, optional = true }
# Experimental feature shielded-scan
zcash_client_backend = { workspace = true, optional = true }
# Optional testing dependencies
proptest = { workspace = true, optional = true }
proptest-derive = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
rand_chacha = { workspace = true, optional = true }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.45", optional = true }
[dev-dependencies]
# Benchmarks
criterion = { workspace = true, features = ["html_reports"] }
# Error Handling & Formatting
color-eyre = { workspace = true }
# This is a transitive dependency via color-eyre.
# Enable a feature that makes tinyvec compile much faster.
tinyvec = { workspace = true, features = ["rustc_1_55"] }
spandoc = { workspace = true }
tracing = { workspace = true }
# Make the optional testing dependencies required
proptest = { workspace = true }
proptest-derive = { workspace = true }
rand = { workspace = true }
rand_chacha = { workspace = true }
tokio = { workspace = true, features = ["full", "tracing", "test-util"] }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.45" }
[[bench]]
name = "block"
harness = false
required-features = ["bench"]
[[bench]]
name = "redpallas"
harness = false