Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I hope this isn't too controversial. Right now if you make any change to your rust source (including any non-source files) a subsequent Nix build will recompile all of your dependencies and do a full compile of your crate. This change allows using a directory of your choice to cache cargo's artifacts. This allows incremental rebuilds. The intent of this is that it can be used in CI, and possibly local development to reduce full rebuilds. This is especially useful if you depend on a large number of crates. This is not intended to be used for production releases and other cases where complete correctness is required. Concerns: - I think executables that have been removed from the source will be grabbed by the installPhase so might not be removed from the package output.
- Loading branch information