120 lines
3.7 KiB
TOML
120 lines
3.7 KiB
TOML
[workspace]
|
|
members = [
|
|
"zebrad",
|
|
"zebra-chain",
|
|
"zebra-network",
|
|
"zebra-state",
|
|
"zebra-script",
|
|
"zebra-consensus",
|
|
"zebra-rpc",
|
|
"zebra-node-services",
|
|
"zebra-test",
|
|
"zebra-utils",
|
|
"zebra-scan",
|
|
"zebra-grpc",
|
|
"tower-batch-control",
|
|
"tower-fallback",
|
|
]
|
|
|
|
# Use the edition 2021 dependency resolver in the workspace, to match the crates
|
|
resolver = "2"
|
|
|
|
# `cargo release` settings
|
|
|
|
[workspace.dependencies]
|
|
incrementalmerkletree = "0.7.0"
|
|
orchard = "0.9.0"
|
|
sapling-crypto = "0.2.0"
|
|
zcash_address = "0.5.0"
|
|
zcash_client_backend = "0.13.0"
|
|
zcash_encoding = "0.2.1"
|
|
zcash_history = "0.4.0"
|
|
zcash_keys = "0.3.0"
|
|
zcash_primitives = "0.17.0"
|
|
zcash_proofs = "0.17.0"
|
|
zcash_protocol = "0.3.0"
|
|
|
|
[workspace.metadata.release]
|
|
|
|
# We always do releases from the main branch
|
|
allow-branch = ["main"]
|
|
|
|
# Compilation settings
|
|
|
|
[profile.dev]
|
|
panic = "abort"
|
|
|
|
# Speed up tests by optimizing performance-critical crates
|
|
|
|
# Cryptographic crates
|
|
|
|
[profile.dev.package.blake2b_simd]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.ff]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.group]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.pasta_curves]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.halo2_proofs]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.halo2_gadgets]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.bls12_381]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.byteorder]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.equihash]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.zcash_proofs]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.ring]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.spin]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.untrusted]
|
|
opt-level = 3
|
|
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
|
|
# Speed up release builds and sync tests using link-time optimization.
|
|
# Some of Zebra's code is CPU-intensive, and needs extra optimizations for peak performance.
|
|
#
|
|
# TODO:
|
|
# - add "-Clinker-plugin-lto" in .cargo/config.toml to speed up release builds
|
|
# - add "-Clinker=clang -Clink-arg=-fuse-ld=lld" in .cargo/config.toml
|
|
# - also use LTO on C/C++ code:
|
|
# - use clang to compile all C/C++ code
|
|
# - add "-flto=thin" to all C/C++ code builds
|
|
# - see https://doc.rust-lang.org/rustc/linker-plugin-lto.html#cc-code-as-a-dependency-in-rust
|
|
lto = "thin"
|
|
|
|
# We can remove this patches after we get out of 2.0 release candidate and upgrade the ECC dependencies above.
|
|
# This revisions are at the commit just before setting mainnet activation heights.
|
|
[patch.crates-io]
|
|
zcash_address = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_client_backend = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_encoding = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_history = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_primitives = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_proofs = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
zcash_protocol = { git = "https://github.com/zcash/librustzcash.git", rev = "1410f1449100a417bfbc4f6c7167aa9808e38792" }
|
|
sapling-crypto = { git = "https://github.com/zcash/sapling-crypto", rev = "b1ad3694ee13a2fc5d291ad04721a6252da0993c" }
|
|
orchard = { git = "https://github.com/zcash/orchard", rev = "55fb089a335bbbc1cda186c706bc037073df8eb7" }
|
|
incrementalmerkletree = { git = "https://github.com/zcash/incrementalmerkletree", rev = "ffe4234788fd22662b937ba7c6ea01535fcc1293" }
|
|
shardtree = { git = "https://github.com/zcash/incrementalmerkletree", rev = "ffe4234788fd22662b937ba7c6ea01535fcc1293" }
|