-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathCargo.toml
More file actions
20 lines (17 loc) · 795 Bytes
/
Cargo.toml
File metadata and controls
20 lines (17 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[workspace]
resolver = "2"
members = ["contracts/vault", "contracts/settlement", "contracts/revenue_pool"]
[workspace.dependencies]
soroban-sdk = "22"
[profile.dev]
overflow-checks = true
[profile.release]
# Size optimization settings to keep WASM under Soroban's 64KB limit
opt-level = "z" # Optimize for size (more aggressive than "s")
overflow-checks = true # Keep overflow checks for safety
debug = 0 # No debug info
strip = "symbols" # Remove symbol table and debug info
debug-assertions = false # Disable debug assertions in release
panic = "abort" # Smaller panic handler (no unwinding)
codegen-units = 1 # Better optimization (slower compile, smaller binary)
lto = true # Link-time optimization across all crates