From a1906ece00fae6cae4fe97315bd28fb2e4be47dd Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 12 Mar 2026 20:59:16 +0300 Subject: [PATCH] chore: add `-Dwarnings` to default Rust flags; add rustflags for wasm32 target Signed-off-by: NotAShelf Change-Id: I2134d0a73748bd8889a97c336823ca826a6a6964 --- .cargo/config.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index abd0872..a91a31b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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", ]