Dealing with include_bytes
in dependencies
#627
-
I'm having some trouble modding the source filters to enable
Basically, it appears that pattern matching against Any ideas on how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Crates are not supposed to depend on/include any files outside of their own directory. This happens to work out for git dependencies because cargo happens to check out the entire repo, but it would not work properly when the crate is published to a registry like crates.io (in which case cargo will only upload the crate's directory and not include any parent files). There are two basic options to handle this:
|
Beta Was this translation helpful? Give feedback.
Crates are not supposed to depend on/include any files outside of their own directory. This happens to work out for git dependencies because cargo happens to check out the entire repo, but it would not work properly when the crate is published to a registry like crates.io (in which case cargo will only upload the crate's directory and not include any parent files).
There are two basic options to handle this: