You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Projects depending on feather can not vendor their dependencies using cargo vendor
Reproduction Steps
git clone https://cyberchaos.dev/yuka/rnat
cd rnat
mkdir .cargo
cargo vendor > .cargo/config.toml
cargo build --all-features
What You Expected to Happen
The vendored versions of the feather crates should work standalone
What Actually Happened
libcraft-blocks-... attempts to load assets from outside its crate root, and fails to build
Screenshots and Logs
error: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_states.bc.gz: No such file or directory (os error 2)
--> /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:216:36
|
216 | static STATE_DATA: &[u8] = include_bytes!("../../assets/raw_block_states.bc.gz");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
error: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_properties.bc.gz: No such file or directory (os error 2)
--> /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:222:39
|
222 | static PROPERTY_DATA: &[u8] = include_bytes!("../../assets/raw_block_properties.bc.gz");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `libcraft-blocks` due to 2 previous errors
It's dead I would say. No documentation, no clear structure. Start something on your own, would be much better, but this time make some nice ass documentation along the way.
Description
Projects depending on feather can not vendor their dependencies using
cargo vendor
Reproduction Steps
git clone https://cyberchaos.dev/yuka/rnat
cd rnat
mkdir .cargo
cargo vendor > .cargo/config.toml
cargo build --all-features
What You Expected to Happen
The vendored versions of the feather crates should work standalone
What Actually Happened
libcraft-blocks-... attempts to load assets from outside its crate root, and fails to build
Screenshots and Logs
Your Environment
Additional Context
It is a known bug in cargo that workspace git dependencies have issues with vendoring:
rust-lang/cargo#8885
rust-lang/cargo#11192
The text was updated successfully, but these errors were encountered: