I have been working through gfx code and the vulkan site. I am getting an odd error all of sudden .
In a git-bash shell environment I execute cargo build:
cargo build Compiling vulkano-examples v0.1.0 (C:\users\fdemi\OneDrive\Documents\Development\vulkan\frank_projs\vulkano_lunarx_examples\examples) error: couldn't read examples\init-instance/main.rs: The system cannot find the file specified. (os error 2)
The problem looks to be the backslash in examples\init-instance/main.rs
My vulkano_lunarx_examples\Cargo.toml contains
[workspace] members = [ "examples" ]
In the examples\Cargo.toml
[package] name = "vulkano-examples" version = "0.1.0" publish = false workspace = ".." edition = "2018" [[bin]] name = "init-instance" path = "init-instance/main.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] vulkano = "0.20.0" vulkano-win = "0.20.0" winit = "0.24.0" log = "0.4.14"
So the path examples\init-instance/main.rs is not handled well.
I used the gfx repository as example for structuring the relevant Cargo.toml files. Building gfx there is no problems. I looked at its environment to see what I maybe missing but I am stumped.