gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.13k stars 881 forks source link

Compiling to WASM wiki page has outdated reference to "cross" cargo feature #1824

Closed gpaulu closed 1 year ago

gpaulu commented 3 years ago

The compiling to WASM instructions mention disabling the "cross" default cargo feature, but the "cross" feature no longer exists.

# 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
kvark commented 3 years ago

We need to rip out everything related to cross or SPIRV-Cross from that document.

cwfitzgerald commented 1 year ago

Fixed