3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
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
..
applications Merge pull request #221866 from wegank/metamorphose2-wx 2023-03-18 21:22:08 +02:00
build-support rustPlatform.importCargoLock: add support for git dependencies that use workspace inheritance 2023-03-18 20:34:59 +01:00
common-updater
data orchis-theme: 2023-02-26 -> 2023-03-18 2023-03-18 10:48:33 +01:00
desktops Merge pull request #221278 from bobby285271/upd/xfce 2023-03-18 17:40:50 +08:00
development Merge pull request #221793 from chvp/downgrade-pywlroots 2023-03-18 14:58:16 -04:00
games Merge pull request #221663 from fgaz/itchiodl/2.3 2023-03-18 12:07:35 -05:00
misc
os-specific Merge pull request #221689 from fpletz/pkg/usbguard-notifier-0.1.0 2023-03-18 14:22:09 +01:00
pkgs-lib
servers Merge pull request #221838 from devusb/pomerium 2023-03-18 17:49:01 +00:00
shells
stdenv
test
tools Merge pull request #221289 from markbeep/ramfetch 2023-03-18 13:57:58 -03:00
top-level Merge pull request #220893 from mrene/fix-sdrangel-darwin 2023-03-18 19:26:49 +02:00