0.2.0 - 2022-01-30
Added
- Support for alternative cargo registries
Changed
urlForCargoPackage
now takes configured registries into account when
downloading crate sources- Breaking:
vendorCargoDeps
now vendors each unique registry as a subdirectory within
the derivation's output. Aconfig.toml
file is also placed at the output
root which contains the necessary configurations to point cargo at the
vendored sources. configureCargoVendoredDepsHook
is now aware of the updatedvendorCargoDeps
output format, and will use theconfig.toml
file it generates if it is
present. Otherwise it will fall back to the previous behavior (which is treat
the entire directory as only vendoring crates.io).- Source vendoring now uses
runCommandLocal
(instead ofrunCommand
) to
reduce network pressure in trying to fetch results which can quickly be built
locally - Searching for
Cargo.toml
or.cargo/config.toml
files is now done more
efficiently