github ipetkov/crane v0.14.0

latest releases: v0.18.1, v0.18.0, v0.17.3...
12 months ago

0.14.0 - 2023-09-21

Added

  • Added devShell, a thin wrapper around pkgs.mkShell which automatically
    provides cargo and rustc.
  • Added the ability to specify output hashes of git dependencies for fully
    offline evaluations. The outputHashes attribute can now be optionally
    specified in vendorCargoDeps, vendorGitDeps, vendorMultipleCargoDeps, or
    anything else which delegates to them.

Changed

  • Breaking (technically): buildDepsOnly, buildPackage, cargoBuild,
    cargoClippy, cargoDoc, cargoLlvmCov, and cargoTest's defaults have
    been changed such that if cargoExtraArgs 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, set cargoExtraArgs = "";
  • Breaking: cargoDoc will no longer install cargo artifacts by default.
    Set doInstallCargoArtifacts = 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 with runCommand for
    more optimal behavior when downloading cached artifacts

Don't miss a new crane release

NewReleases is sending notifications on new releases.