Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Omitting revision when specifying spirv-std dep #89

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" }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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