-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo gpu build fails with "missing field dylib_path
"
#52
Comments
This is very likely a bug in the PR, thanks for trying it out. When I wrote the PR I was testing against a shader crate that lives in a workspace, but is actually excluded, which it has its own So I've pushed a fix to #41 where it only checks the shader's |
Thank you. Yes that was the case, the shader crate is not excluded from the workspace. I have tried your recent additions and can confirm that it works now. Interestingly: Checking out the repo and running But installing So the issue is closed by #41 |
Great that it works. Thanks for you help. That's a curious wrinkle that the Just a quick question, did the |
both
This happens even if I add the If I change the version in the I am not sure how the cargo version issue could be handled otherwise. |
Actually there is a special case: Running from the repo without the |
Okay, I'm not quite sure what's going on. The main thing is that you're able to recover and compile the shader. So let's merge the PR anyway and then we should have a more consistent base to come up with reproducible steps for the issues. |
After updating cargo gpu to commit 95efce2 or any more recent version, my shaders stop compiling.
The last working version for me is 70224f6
The error message is:
I am on Ubuntu 24.04, using a regular rustup setup.
Running
RUST_BACKTRACE=1 RUST_LOG=trace cargo gpu build
results in:This version of
cargo-gpu
is also the first one wherecargo gpu install --auto-install-rust-toolchain --force-spirv-cli-rebuild
fails with:This is probably the same as #45
Unfortunately, #41 doesn't fix the issue for me. Both
cargo gpu build
andcargo gpu install
fail with errorNo such file or directory (os error 2)
:I'm not sure if the issue is a duplicate, since the initial error message is different than in other reported issues.
The text was updated successfully, but these errors were encountered: