mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 12:36:51 +03:00
dfe3afcdd9
* add section on source filtering * add FAQ about `include_str!` * add section about sandbox-unfriendly build scripts
594 B
594 B
I'm having trouble building a project which uses include_str!
Double check if the source passed into the derivation is being cleaned or
filtered in anyway. Using craneLib.cleanCargoSource
(or
craneLib.filterCargoSources
directly) will omit any non-cargo and non-rust
files before trying to build the derivation. Thus if the project is trying to
use include_str!
, include_bytes!
, or any other attempt at accessing such a
file you may need to tweak the source filter to ensure the files are included.
Check out the source filtering section for more info!