Why does cargo think that vk-shader-macros does not exist?

I have a very confusing error. Here's a minimal example. I have just src/lib.rs and Cargo.toml.


pub use vk_shader_macros::*;


name = "wtf"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

vk-shader-macros = "0.2.9"

When I compile this crate, I get the following very confusing error:

cargo build
   Compiling wtf v0.1.0 (/tmp/wtf)
error[E0463]: can't find crate for `vk_shader_macros`
 --> src/lib.rs:1:9
1 | pub use vk_shader_macros::*;
  |         ^^^^^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `wtf` (lib) due to previous error

Tooling versions:

rustc 1.73.0 (cc66ad468 2023-10-03)
$ cargo --version
cargo 1.73.0 (9c4383fb5 2023-08-26)

What on earth is going on here? I have attached a minimal reproducible example. It seems to happen only with vk-shader-macros.

Minimal example: https://cdn.discordapp.com/attachments/443150878111694848/1168440490241310720/wtf.zip

I can't replicate the issue. Have you tried cleaning the project with cargo clean? You could also try cargo build --verbose to see if there's something useful there. If I had to guess, there may be something wrong with the crate's build script?

The dependencies section of the repo's readme may be useful as well.