I have a very confusing error. Here's a minimal example. I have just src/lib.rs and Cargo.toml.
src/lib.rs:
pub use vk_shader_macros::*;
Cargo.toml:
[package]
name = "wtf"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
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