forked from milepost-labs/milepost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
34 lines (30 loc) · 966 Bytes
/
Copy pathCargo.toml
File metadata and controls
34 lines (30 loc) · 966 Bytes
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
[workspace]
resolver = "2"
members = ["contracts/*", "crates/*"]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.85"
license = "Apache-2.0"
repository = "https://github.com/milepost-labs/milepost"
[workspace.dependencies]
soroban-sdk = "27.0.6"
milepost-types = { path = "crates/types" }
# Soroban contracts are billed by deployed WASM size and by CPU instructions, so
# the release profile optimises for size first. `overflow-checks` stays on: an
# arithmetic wrap in a contract that moves money is a vulnerability, not a
# performance trade-off.
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true
# Used by `cargo test --profile release-with-logs` when a failing test needs the
# contract's own diagnostic events, which `panic = "abort"` otherwise swallows.
[profile.release-with-logs]
inherits = "release"
debug-assertions = true