-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
72 lines (60 loc) · 3.15 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
[package]
name = "cartezcash"
version = "0.1.0"
edition = "2021"
authors = ["Willem Olding <willemolding@gmail.com>"]
license = "APACHE-2.0"
# lets get those speedups
[profile.release]
codegen-units = 1
lto = "fat"
[dependencies]
json = "0.12"
hyper = { version = "0.14", features = ["http1", "runtime", "client"] }
tokio = { version = "1.32", features = ["macros", "rt-multi-thread"] }
tower = { version = "0.4.13", features = ["timeout", "util", "buffer"] }
chrono = { version = "0.4.34", default-features = false, features = ["clock", "std"] }
anyhow = "1.0.81"
hex = "0.4.3"
uint = "0.9.5"
ethereum-types = "0.14.1"
futures-util = "0.3.30"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
tonic = { version = "0.11", optional = true}
zcash_address = "0.3.2"
zcash_keys = { version = "0.2.0", features = ["orchard"] }
zcash_primitives = "0.15.0"
zebra-state = { workspace = true, optional = true }
tiny-cash = { path = "tiny-cash" }
cartezcash-lightwalletd = { path = "cartezcash-lightwalletd", optional = true }
tower-cartesi = { path = "tower-cartesi" }
ethabi = "18.0.0"
alloy-json-abi = "0.7.2"
[features]
default = ["listen-http", "preinitialize-halo2"]
lightwalletd = ["dep:cartezcash-lightwalletd", "dep:tonic", "dep:zebra-state"]
preinitialize-halo2 = []
listen-http = []
listen-graphql = ["tower-cartesi/tls"]
[workspace]
members = [ "cartezcash-lightwalletd", "tiny-cash", "tower-cartesi"]
[workspace.dependencies]
# patched zebra crates to support TinyCash network and expose things we need
zebra-consensus = { git = "https://github.com/willemolding/zebra", rev = "04615946f3bae4e39925edae8ed1e150b7cf531a", default-features = false }
zebra-state = { git = "https://github.com/willemolding/zebra", rev = "04615946f3bae4e39925edae8ed1e150b7cf531a", default-features = false }
zebra-test = { git = "https://github.com/willemolding/zebra", rev = "04615946f3bae4e39925edae8ed1e150b7cf531a", default-features = false }
zebra-chain = { git = "https://github.com/willemolding/zebra", rev = "04615946f3bae4e39925edae8ed1e150b7cf531a", default-features = false }
zebra-script = { git = "https://github.com/willemolding/zebra", rev = "04615946f3bae4e39925edae8ed1e150b7cf531a", default-features = false }
# uncomment for local dev when modifying zebra
# zebra-consensus = { path = "../zebra/zebra-consensus", default-features = false }
# zebra-state = { path = "../zebra/zebra-state", default-features = false }
# zebra-test = { path = "../zebra/zebra-test", default-features = false }
# zebra-chain = { path = "../zebra/zebra-chain", default-features = false }
# zebra-script = { path = "../zebra/zebra-script", default-features = false }
[patch.crates-io]
# Ring needed to be patched as while the current version supports riscv, the version used by Zebra doesn't.
ring = { git = "https://github.com/willemolding/ring", branch = "willemolding/riscv-build-0.16.20" }
# rocksdb needs to link libatomic for riscv builds but doesn't do this. This patch adds it in. Can be merged upstream
# TODO: Try and delete this soon as the build should no longer depend on zebra_state when building for Cartesi machine
rocksdb = { git = "https://github.com/willemolding/rust-rocksdb", branch = "willemolding/riscv-support" }