Skip to content

Omitting revision when specifying spirv-std dep #89

@schell

Description

@schell

cargo-gpu fails to compile my shader crate if my Cargo.toml contains this dep:

[patch.crates-io]
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu" }

It fails with this error:

[2025-06-14T07:04:35Z ERROR cargo_gpu] get_rust_gpu_deps_from_shader
    
    Caused by:
        Failed to parse git url git+https://github.com/Rust-GPU/rust-gpu#30024f86419f06436c25e835cb4794e1f41fbcb9
Error: get_rust_gpu_deps_from_shader

...but it succeeds (or at least it gets further in my case) with this dep:

[patch.crates-io]
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "30024f8" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions