Skip to content

v0.17.0

Compare
Choose a tag to compare
@ipetkov ipetkov released this 19 May 01:12
· 100 commits to master since this release
v0.17.0
a4e51f5

0.17.0 - 2024-05-18

Added

  • cargoDoc now supports docInstallRoot to influence which directory will be
    installed to $out/share (which can be useful when cross-compiling). By
    default $CARGO_TARGET_DIR and $CARGO_BUILD_TARGET (if set) will be taken
    into account
  • crateNameFromCargoToml now supports selecting a derivation name by setting
    package.metadata.crane.name or workspace.metadata.crane.name in the root
    Cargo.toml
  • vendorCargoDeps, vendorCargoRegistries, vendorGitDeps, and
    vendorMultipleCargoDeps now support arbitrary overrides (i.e. patching) at
    the individual crate/repo level when vendoring sources.

Changed

  • Breaking cargoAudit no longer accepts cargoExtraArgs (since it does
    not support the regular set of cargo flags like most cargo-commands do, it
    does not make much sense to propagate those flags through)
  • buildTrunkPackage now sets env.TRUNK_SKIP_VERSION_CHECK = "true"; if not
    specified

Deprecations

  • In the future, crateNameFromCargoToml will stop considering
    workspace.package.name in the root Cargo.toml when determining the crate
    name. This attribute is not recognized by cargo (which will emit its own
    warnings about it) and should be avoided going forward.
  • In the future, crane.lib.${system} will be removed. Please switch to using
    (crane.mkLib nixpkgs.lib.${system}) as an equivalent alternative.