github ipetkov/crane v0.12.0

latest releases: v0.19.1, v0.19.0, v0.18.1...
20 months ago

0.12.0 - 2023-03-19

Added

  • Add a stubbed binary target to each "dummy" crate generated to support
    "artifact dependencies" nightly feature
    in case a crate is used as bin artifact dependency.
  • Add cargoLlvmCov to run cargo llvm-cov
  • Add cargoLockParsed option to vendorCargoDeps to support Cargo.lock
    files parsed as nix attribute sets.
  • craneLib.path can now be used as a convenience wrapper on (or drop in
    replacement of) builtins.path to ensure reproducible results whenever paths
    like ./. or ./.. are used directly.

Changed

  • Breaking (technically): mkCargoDerivation will remove the following
    attributes before lowering to mkDerivation: cargoLock, cargoLockContents
    and cargoLockParsed. If your derivation needs these values to be present
    they can be explicitly passed through via .overrideAttrs
    buildDepsOnly as dummySrc will take priority
  • The API docs have been updated to refer to craneLib (instead of just lib)
    to avoid ambiguities with pkgs.lib.
  • cargo is now invoked with --release when $CARGO_PROFILE == release instead
    of passing in --profile release to better support tools which do not
    understand the latter

Fixed

  • Fixed support for projects depending on crates utilising per-target workspace dependencies.

Don't miss a new crane release

NewReleases is sending notifications on new releases.