ipetkov / crane

A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
https://crane.dev
MIT License
969 stars 92 forks source link

Binaries missing from `$out/bin/` #589

Closed samuela closed 7 months ago

samuela commented 7 months ago

Similar to https://github.com/nix-community/naersk/issues/324, I'm finding that my "api" binary is missing from $out/bin when building with crane. Running cargo build manually creates target/debug/api, but I'm not seeing it compiled or generated by crane.

Perhaps this is some kind of issue pervasive to the nix rust builders?

dpc commented 7 months ago

Is it in the ./target during Nix build? You can add ls ... somewhere in a preInstall hook or something like that.

samuela commented 7 months ago

I had to git add src/bin/api.rs... damn flake/git coupling!