-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCargo.toml
More file actions
80 lines (71 loc) · 2.4 KB
/
Cargo.toml
File metadata and controls
80 lines (71 loc) · 2.4 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
[workspace]
resolver = "2"
members = ["program", "zk-sdk", "zk-sdk-wasm-js"]
[workspace.package]
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
repository = "https://github.com/solana-program/zk-elgamal-proof"
homepage = "https://anza.xyz/"
license = "Apache-2.0"
edition = "2021"
[workspace.lints.rust]
warnings = "deny"
[workspace.lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ['cfg(target_os, values("solana"))']
[workspace.metadata.spellcheck]
config = "scripts/spellcheck.toml"
[workspace.dependencies]
aes-gcm-siv = "0.11.1"
base64 = "0.22.1"
bincode = "1.3.3"
bytemuck = "1.25.0"
bytemuck_derive = "1.10.2"
curve25519-dalek = { version = "4.1.3", features = ["digest", "rand_core"] }
getrandom = "0.2"
itertools = "0.14.0"
js-sys = "0.3.77"
merlin = { version = "3", default-features = false }
num-derive = "0.4"
num-traits = "0.2"
rand = "0.8.5"
serde = "1.0.228"
serde_derive = "1.0.219"
serde_json = "1.0.149"
sha3 = "0.10.8"
solana-address = { version = "2.2.0", default-features = false }
solana-derivation-path = "3.0.0"
solana-instruction = "3.2.0"
solana-keypair = "3.1.2"
solana-sdk-ids = "3.1.0"
solana-seed-derivable = "3.0.0"
solana-seed-phrase = "3.0.0"
solana-signature = { version = "3.3.0", default-features = false }
solana-signer = "3.0.0"
solana-zk-elgamal-proof-program = { path = "program", version = "0.0.0" }
solana-zk-sdk = { path = "zk-sdk", version = "5.0.1" }
solana-zk-sdk-wasm-js = { path = "zk-sdk-wasm-js", version = "0.1.0" }
subtle = "2.6.1"
thiserror = "2.0.18"
tiny-bip39 = "2.0.0"
wasm-bindgen = "0.2"
wasm-bindgen-test = "0.3"
zeroize = { version = "1.8", default-features = false }
[profile.release]
split-debuginfo = "unpacked"
lto = "thin"
# Enable basic optimizations for unittests
[profile.test]
opt-level = 1
# Enable optimizations for procmacros for faster recompile
[profile.dev.build-override]
opt-level = 1
# curve25519-dalek uses the simd backend by default in v4 if possible,
# which has very slow performance on some platforms with opt-level 0,
# which is the default for dev and test builds.
# This slowdown causes certain interactions in the solana-test-validator,
# such as verifying ZK proofs in transactions, to take much more than 400ms,
# creating problems in the testing environment.
# To enable better performance in solana-test-validator during tests and dev builds,
# we override the opt-level to 3 for the crate.
[profile.dev.package.curve25519-dalek]
opt-level = 3