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
My current setup (which relies on rustbuilder) is to put a shader crate inside of each example.
I tried testing cargo gpu to see if it could alleviate some woes so I did:
cd examples/01_spinning_triangle/spinning_triangle_shader/
cargo gpu build
I am getting this error:
error: package `clap_builder v4.5.23` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.71.0-nightly
Either upgrade to rustc 1.74 or newer, or use
cargo update -p clap_builder@4.5.23 --precise ver
where `ver` is the latest version of `clap_builder` supporting rustc 1.71.0-nightly
[2025-02-10T05:18:06Z ERROR cargo_gpu] ...build error!
Error: ...build error!
Clap is not a dependency of the shader crate at all:
[package]
name = "spinning-triangle-shader"
version = "0.0.0"
publish = false
[lib]
crate-type = ["lib", "dylib"]
[dependencies]
spirv-std = "0.9.0"
bytemuck = { version = "1.20.0", features = ["derive"] }
So I don't understand why it's trying to get compiled?