A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
Go to file
Ivan Petkov 10a60cc085
Do not copy cargo artifacts into a separate output by default
* 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
2022-01-01 11:12:13 -08:00
checks Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00
lib Do not copy cargo artifacts into a separate output by default 2022-01-01 11:12:13 -08:00
pkgs Do not copy cargo artifacts into a separate output by default 2022-01-01 11:12:13 -08:00
tests Do not copy cargo artifacts into a separate output by default 2022-01-01 11:12:13 -08:00
.envrc Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00
.gitignore Add checks for cleanCargoToml 2021-12-29 19:26:55 -08:00
default.nix Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00
flake.lock Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00
flake.nix Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00
runTests.sh Move all tests (except for formatting) out of flake checks 2021-12-30 17:18:17 -08:00