Skip to main content

build_web_rustflags

Function build_web_rustflags 

Source
pub fn build_web_rustflags(existing: Option<&str>) -> String
Expand description

Composes RUSTFLAGS for wasm32-unknown-unknown preserving bulk-memory, getrandom_backend="wasm_js", and simd128.

§Arguments

  • Option<&str> - Existing RUSTFLAGS environment value, if any.

§Returns

  • String - Complete RUSTFLAGS string safe against .cargo/config.toml override drops.