You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/gfx-rs/wgpu.git
cd wgpu
cargo xtask run-wasm --bin cube
Expected vs observed behavior
Expected to build and see the cube example running in browser. Instead got this:
$ cargo xtask run-wasm --bin cube
error: no such subcommand: `xtask`
Did you mean `apk`?
View all installed commands with `cargo --list`
Extra materials
It appears that the .cargo/config.toml that supports xtask was removed here: #4107
For beginners, the missing .cargo/config.toml can be hard to debug, especially since the project doesn't use the workspace setup suggested by https://github.com/matklad/cargo-xtask
Was this intentional? If so I can raise a separate issue about updating the documentation to reflect the removal of the xtask alias.
Platform
rustc 1.65.0 (897e37553 2022-11-02)
Mac OS Ventura 13.5.2
The text was updated successfully, but these errors were encountered:
Oops, yup, I 100% didn't intend on deleting that -- I was using .cargo/config.toml to temporarily let CLion know that I'm compiling with WASM as the target, so removing that was part of my cleanup however apparently I forgot to notice that there were extra things in that file, other than the config I was adding 😅.
Description
On trunk,
cargo xtask
is not found, but it is referenced in multiple places including https://github.com/gfx-rs/wgpu/wiki/Running-on-the-Web-with-WebGPU-and-WebGLRepro steps
git clone https://github.com/gfx-rs/wgpu.git cd wgpu cargo xtask run-wasm --bin cube
Expected vs observed behavior
Expected to build and see the cube example running in browser. Instead got this:
Extra materials
It appears that the
.cargo/config.toml
that supports xtask was removed here: #4107For beginners, the missing
.cargo/config.toml
can be hard to debug, especially since the project doesn't use the workspace setup suggested by https://github.com/matklad/cargo-xtaskWas this intentional? If so I can raise a separate issue about updating the documentation to reflect the removal of the xtask alias.
Platform
The text was updated successfully, but these errors were encountered: