0.14.0 - 2023-09-21
Added
- Added
devShell
, a thin wrapper aroundpkgs.mkShell
which automatically
providescargo
andrustc
. - Added the ability to specify output hashes of git dependencies for fully
offline evaluations. TheoutputHashes
attribute can now be optionally
specified invendorCargoDeps
,vendorGitDeps
,vendorMultipleCargoDeps
, or
anything else which delegates to them.
Changed
- Breaking (technically):
buildDepsOnly
,buildPackage
,cargoBuild
,
cargoClippy
,cargoDoc
,cargoLlvmCov
, andcargoTest
's defaults have
been changed such that ifcargoExtraArgs
have not been set, a default value
of--locked
will be used. This ensures that a project's committed
Cargo.lock
is exactly what is expected (without implicit changes at build
time) but this may end up rejecting builds which were previously passing. To
get the old behavior back, setcargoExtraArgs = "";
- Breaking:
cargoDoc
will no longer install cargo artifacts by default.
SetdoInstallCargoArtifacts = true;
to get the old behavior back. cargoDoc
will now install generated documentation in$out/share/doc
- Fixed a bug when testing proc macro crates with
cargoNextest
on macOS.
(#376) - Replaced various internal usages of
runCommandLocal
withrunCommand
for
more optimal behavior when downloading cached artifacts