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
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
I have a minimal rust shader that just renders a triangle to the screen that I am compiling with an old wrapper around rust-gpu.
I am trying to compile the same shader with cargo gpu as:
cargo gpu build
馃 Running `spirv-builder-cli` to compile shader at /home/makogan/rust_never_engine/examples/01_spinning_triangle/spinning_triangle_shader...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:Error("missing field `force_overwrite_lockfiles_v4_to_v3`", line:31, column:3)', src/main.rs:82:62
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2025-03-15T17:36:26ZERROR cargo_gpu] build failed
Error: build failed
I am within the crate folder when Invoke the command.
I am not entirely sure what the problem actually is. I know the crate has to be correct because it compiles with my custom wrapper.
Oof, copying all of that into the toml is a lot. For now someone else suggested something that worked for me: cargo install --git https://github.com/Rust-GPU/cargo-gpu cargo-gpu --force
I just tried compiling the shader-crate-template shader in our repo without any cargo-gpu config in the shader's Cargo.toml and it compiled okay. So I think my initial theory is wrong. @Makogan, I think I'd need to see your shader's crate, or at least your shader's Cargo.toml, to have more of an idea of what caused this error.
But of course, if you got it compiling then that's the most important thing! I'm sure we'll get more reports if there is an underlying bug.
Activity
tombh commentedon Mar 15, 2025
Oh, maybe none of the
cargo gpu-specific config values are default 馃槵 So I mean all these values need to be placed in your shader'sCargo.toml: https://github.com/Rust-GPU/cargo-gpu/blob/main/crates/shader-crate-template/Cargo.toml#L22Damn, that's a pretty big oversight if so 馃う
schell commentedon Mar 16, 2025
Oof, we should fix this ASAP! Thanks @Makogan :)
Makogan commentedon Mar 16, 2025
Oof, copying all of that into the toml is a lot. For now someone else suggested something that worked for me:
cargo install --git https://github.com/Rust-GPU/cargo-gpu cargo-gpu --forceschell commentedon Mar 16, 2025
What version of
cargo-gpuwere you on before, @Makogan ? I would expect this to be the same onmaintombh commentedon Mar 23, 2025
I just tried compiling the
shader-crate-templateshader in our repo without anycargo-gpuconfig in the shader'sCargo.tomland it compiled okay. So I think my initial theory is wrong. @Makogan, I think I'd need to see your shader's crate, or at least your shader'sCargo.toml, to have more of an idea of what caused this error.But of course, if you got it compiling then that's the most important thing! I'm sure we'll get more reports if there is an underlying bug.