-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
75 lines (63 loc) · 1.94 KB
/
Copy pathCargo.toml
File metadata and controls
75 lines (63 loc) · 1.94 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
[workspace]
members = [
"programs/zk_shielded",
"programs/specter",
"programs/stream",
"programs/subscription",
"programs/whitelist",
"programs/p01-fee-splitter",
"programs/p01_zkspl",
"programs/p01_relayer",
"programs/p01_stark_verifier",
"programs/p01_quantum_vault",
"programs/p01_quantum_wallet",
"programs/p01_registry",
"programs/p01_mugen",
"programs/p01_liquidity",
"stark",
]
# p01_arcium pulls arcium-primitives → serde_with 3.18 → time 0.3.47 which
# requires edition2024, incompatible with Solana SBF cargo 1.84. The program
# is not on the critical path; build it standalone with its own toolchain
# via `cd programs/p01_arcium && cargo build` if needed.
exclude = [
"programs/p01_arcium",
"programs/p01_arcium/encrypted-ixs",
]
resolver = "2"
[workspace.package]
rust-version = "1.84"
[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
# =============================================================================
# WORKSPACE DEPENDENCIES
# =============================================================================
[workspace.dependencies]
# Anchor dependencies - 0.32.1 (compatible with Solana v2 / Agave)
anchor-lang = "0.32.1"
anchor-spl = "0.32.1"
# Serialization - borsh version compatible with Anchor 0.32.1
borsh = "1.5"
# Common utilities
thiserror = "1.0"
bytemuck = { version = "1.14", features = ["derive"] }
# ZK dependencies for shielded transactions
ark-bn254 = "0.4.0"
ark-groth16 = "0.4.0"
ark-serialize = "0.4.0"
ark-ff = "0.4.0"
ark-ec = "0.4.0"
ark-std = "0.4.0"
sha3 = "0.10"
# Pin blake3 to avoid edition2024 (Solana platform-tools cargo is 1.84)
blake3 = "=1.8.2"
# Pin base64ct to avoid edition2024 (pulled by spki → pkcs8 → signature)
base64ct = "=1.7.3"
# Pin time to avoid edition2024 (pulled by solana deps, Solana cargo is 1.84)
time = "=0.3.41"