-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (110 loc) · 5.01 KB
/
Cargo.toml
File metadata and controls
118 lines (110 loc) · 5.01 KB
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
[workspace]
members = [
"app/crates/core/prover",
"app/crates/core/state",
"app/crates/core/stellar",
"app/crates/core/types",
"app/crates/core/witness",
"app/crates/platforms/web",
"circuits",
"contracts/*",
"e2e-tests",
"poseidon2",
"tools/ceremony-cli",
]
resolver = "3"
[workspace.package]
version = "0.1.0"
edition = "2024"
repository = "https://github.com/NethermindEth/stellar-private-transactions"
license = "Apache-2.0"
publish = false
[workspace.dependencies]
anyhow = { version = "1", default-features = false }
ark-bn254 = { version = "0.5.0", default-features = false, features = ["curve"] }
ark-circom = { git = "https://github.com/NethermindEth/circom-compat.git", default-features = false, branch = "wasm-no-parallel" }
ark-crypto-primitives = { version = "0.5.0", default-features = false }
ark-ec = { version = "0.5.0", default-features = false }
ark-ff = { version = "0.5.0", default-features = false }
ark-groth16 = { version = "0.5.0", default-features = false }
ark-poly = { version = "0.5.0", default-features = false }
ark-relations = { version = "0.5.1", default-features = false }
ark-serialize = { version = "0.5.0", default-features = false }
ark-snark = { version = "0.5.1", default-features = false }
ark-std = { version = "0.5.0", default-features = false }
asp-membership = { path = "contracts/asp-membership" }
asp-non-membership = { path = "contracts/asp-non-membership" }
async-trait = { version = "0.1.89", default-features = false }
cfg-if = { version = "1", default-features = false }
circom-groth16-verifier = { path = "contracts/circom-groth16-verifier" }
circuits = { path = "circuits", default-features = false }
console_error_panic_hook = { version = "0.1.7", default-features = false }
contract-types = { path = "contracts/types" }
futures = { version = "0.3.32", default-features = false, features = ["async-await"] }
getrandom = { version = "0.2", features = ["js"] }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
log = { version = "0.4", default-features = false }
num-bigint = { version = "0.4.6", default-features = false, features = ["serde"] }
num-integer = { version = "0.1.46", default-features = false }
num-traits = { version = "0.2", default-features = false }
pool = { path = "contracts/pool" }
prover = { path = "app/crates/core/prover" }
rusqlite = { version = "0.39.0", default-features = false, features = ["buildtime_bindgen"] }
serde = { version = "1", default-features = false, features = ["derive", "alloc"] }
serde-wasm-bindgen = { version = "0.6", default-features = false }
serde_bytes = { version = "0.11", default-features = false }
serde_json = { version = "1", default-features = false }
sha2 = { version = "0.10.9", default-features = false }
soroban-sdk = { version = "25.0.2", default-features = false, features = ["hazmat"] }
soroban-utils = { path = "contracts/soroban-utils" }
state = { path = "app/crates/core/state" }
stellar = { path = "app/crates/core/stellar" }
thiserror = { version = "1", default-features = false }
types = { path = "app/crates/core/types" }
uint = { version = "0.9", default-features = false }
# pin for wasmer
wasm-bindgen = { version = "=0.2.108", default-features = false, features = ["serde-serialize"] }
wasm-log = { version = "0.3", default-features = false }
wasmer = { version = "6.1", default-features = false }
web = { path = "app/crates/platforms/web" }
witness = { path = "app/crates/core/witness" }
zkhash = { path = "poseidon2" }
[workspace.lints.rust]
missing_docs = "allow"
unsafe_code = "deny"
[workspace.lints.clippy]
arithmetic_side_effects = "deny"
cast_lossless = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
needless_return = "deny"
panicking_overflow_checks = "deny"
unwrap_used = "deny"
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true
# For more information about this profile see https://soroban.stellar.org/docs/basic-tutorials/logging#cargotoml-profile
[profile.release-with-logs]
inherits = "release"
debug-assertions = true
[patch.crates-io]
ark-circom = { git = "https://github.com/NethermindEth/circom-compat.git", branch = "wasm-no-parallel" }
ark-relations = { git = "https://github.com/arkworks-rs/snark.git" }
ark-snark = { git = "https://github.com/arkworks-rs/snark.git" }
ark-crypto-primitives = { git = "https://github.com/arkworks-rs/crypto-primitives.git" }
ark-ff = { git = "https://github.com/arkworks-rs/algebra.git" }
ark-ec = { git = "https://github.com/arkworks-rs/algebra.git" }
ark-poly = { git = "https://github.com/arkworks-rs/algebra.git" }
ark-serialize = { git = "https://github.com/arkworks-rs/algebra.git" }
ark-bn254 = { git = "https://github.com/arkworks-rs/algebra.git" }
ark-groth16 = { git = "https://github.com/arkworks-rs/groth16.git" }
[patch."https://github.com/arkworks-rs/circom-compat.git"]
ark-circom = { git = "https://github.com/NethermindEth/circom-compat.git", branch = "wasm-no-parallel" }