cargo / rust include_bytes
support
#643
Replies: 11 comments
-
Most of the time this is because your non-rust file didn't make it through your nix source filter. Can you share your flake? |
Beta Was this translation helpful? Give feedback.
-
@johnbchron Thank you very much for your fast reply. Below are the links to our nix files. we also tried to use crane, see PR here |
Beta Was this translation helpful? Give feedback.
-
@johnbchron Thank you very much for your suggestion. |
Beta Was this translation helpful? Give feedback.
-
@radupopa369 please take a look at the following Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I had a look at https://crane.dev/source-filtering.html and tried to implement something like explained there. This is the nix file https://github.com/movementlabsxyz/movement/blob/l-monninger/crane/nix/m1-da-light-node.nix
|
Beta Was this translation helpful? Give feedback.
-
@radupopa369 source filtering needs to be configured when the issue is with your project's sources. In this case it appears to be an issue compiling a dependency crate, in which case you will need to either patch the problem yourself (e.g. via https://crane.dev/patching_dependency_sources.html ) or submit a fix upstream! |
Beta Was this translation helpful? Give feedback.
-
@ipetkov I was hitting the same problem. Are the vendor dependencies then filtered to contain only *.rs, Cargo.toml and Cargo.lock as it looks like the |
Beta Was this translation helpful? Give feedback.
-
@andyjsbell we follow the same procedures to vendor git dependencies that There are no source filters that are run when vendoring dependencies. |
Beta Was this translation helpful? Give feedback.
-
@ipetkov Would be interesting in discussing a bug bounty reward to help us fix this bug? |
Beta Was this translation helpful? Give feedback.
-
@radupopa369 no, not at this time, unfortunately |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Would be nice if
crane
could help fixinginclude_bytes
does not work as expectedwithbuildRustPackage
for git dependenciesDescribe the solution you'd like
Crane would be able to build rust nix packages that use
include_bytes
Describe alternatives you've considered
Traditional
cargo build
is the only working solution at the moment.Additional context
Beta Was this translation helpful? Give feedback.
All reactions