mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
5686f0064d
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 |
||
---|---|---|
.. | ||
basic | ||
basic-dynamic | ||
git-dependency | ||
git-dependency-branch | ||
git-dependency-rev | ||
git-dependency-rev-non-workspace-nested-crate | ||
git-dependency-tag | ||
git-dependency-workspace-inheritance | ||
maturin | ||
v1 | ||
default.nix |