# Build with the wasm target
# Since "cross" is enabled by default but useful for this target, we disable default features
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --no-default-features --target wasm32-unknown-unknown --example hello-triangle
The compiling to WASM instructions mention disabling the "cross" default cargo feature, but the "cross" feature no longer exists.