nixpkgs/pkgs/build-support/rust
Winter 5686f0064d rustPlatform.importCargoLock: add support for git dependencies that use workspace inheritance
Rust 1.64.0 added support for workspace inheritance, which allows
for crates to inherit values such as dependency version constraints or
package metadata information from their workspaces [0].

This works by having workspace members specify a value as a table, with
`workspace` set to true. Thus, supporting this in importCargoLock is as
simple as walking the crate's Cargo.toml, replacing inherited values
with their workspace counterpart.

This is also what a forthcoming Cargo release will do for `cargo vendor` [1],
but we can get ahead of it ;)

[0]: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#cargo-improvements-workspace-inheritance-and-multi-target-builds
[1]: https://github.com/rust-lang/cargo/pull/11414
2023-03-18 20:34:59 +01:00
..
build-rust-crate buildRustCrate: add libiconv to nativeBuildInputs on darwin 2023-03-08 14:39:25 -06:00
build-rust-package rustPlatform: forward unpack hooks to cargo fetch 2023-03-14 00:26:11 +00:00
fetch-cargo-tarball cargo: move cert info to fetch-cargo-tarball 2023-02-01 06:53:43 +10:00
hooks Merge pull request #218472 from figsoda/cargo-setup 2023-03-03 19:40:55 -05:00
lib build-support/rust/lib: Add toTargetVendor 2023-02-15 20:37:45 -05:00
sysroot build-support/rust/sysroot/src: Use dont* instead of phase list 2021-11-08 21:38:58 +00:00
test/import-cargo-lock rustPlatform.importCargoLock: add support for git dependencies that use workspace inheritance 2023-03-18 20:34:59 +01:00
default-crate-overrides.nix default-crate-overrides.nix: add graphene-sys 2023-01-13 16:43:39 +00:00
fetchcargo-default-config.toml
fetchcrate.nix fetchCrate: add unpack option to use fetchurl instead of fetchzip 2023-03-13 22:15:02 -04:00
import-cargo-lock.nix rustPlatform.importCargoLock: add support for git dependencies that use workspace inheritance 2023-03-18 20:34:59 +01:00
replace-workspace-values.py rustPlatform.importCargoLock: add support for git dependencies that use workspace inheritance 2023-03-18 20:34:59 +01:00