chore: add -Dwarnings to default Rust flags; add rustflags for wasm32 target

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2134d0a73748bd8889a97c336823ca826a6a6964
This commit is contained in:
raf 2026-03-12 20:59:16 +03:00
commit a1906ece00
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -6,6 +6,17 @@ 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",
]