mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
10a60cc085
* Copying the cargo artifacts to their own separate output is a good idea *in theory* where each derivation produces bins/libs so that other things can depend on them without pulling in the cargo artifacts as well * In practice, it's much more likely that a derivation will produce cargo artifacts (to be reused in other build/test steps) XOR produce the final binaries * Therefore _not_ separating the outputs will produce less friction when forming dependency trees in the general path (e.g. no more forgetting to specify `drv.target`) * If a caller really wants to install cargo artifacts in a separate output, they can easily add the customization themselves |
||
---|---|---|
checks | ||
lib | ||
pkgs | ||
tests | ||
.envrc | ||
.gitignore | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
runTests.sh |