pinakes/.cargo/config.toml
NotAShelf a1906ece00
chore: add -Dwarnings to default Rust flags; add rustflags for wasm32 target
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2134d0a73748bd8889a97c336823ca826a6a6964
2026-03-19 20:06:21 +03:00

36 lines
646 B
TOML

[unstable]
build-std = ["std", "panic_abort", "core", "alloc"]
[build]
rustflags = [
"-Clto",
"-Zvirtual-function-elimination",
"-Zlocation-detail=none",
# Configuration for these lints should be placed in `.clippy.toml` at the crate root.
"-Dwarnings",
]
[target.wasm32-unknown-unknown]
rustflags = [
"-C",
"link-args=-z stack-size=268435456",
"-C",
"target-feature=+atomics,+bulk-memory,+mutable-globals",
]
[profile.dev]
opt-level = 0
debug = 1
split-debuginfo = "unpacked"
incremental = true
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false