mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
rustPlatform.importCargoLock: copy lints from workspace
Rust 1.74 added support for configuring lints with cargo in a new "lints" table. This also adds a new possible position to reference the host workspace. Fixes #273835
This commit is contained in:
parent
08d6cec730
commit
285216aceb
1 changed files with 7 additions and 0 deletions
|
@ -96,6 +96,13 @@ def main() -> None:
|
||||||
workspace_manifest, crate_manifest["target"][key]
|
workspace_manifest, crate_manifest["target"][key]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (
|
||||||
|
"lints" in crate_manifest
|
||||||
|
and "workspace" in crate_manifest["lints"]
|
||||||
|
and crate_manifest["lints"]["workspace"] is True
|
||||||
|
):
|
||||||
|
crate_manifest["lints"] = workspace_manifest["lints"]
|
||||||
|
|
||||||
if not changed:
|
if not changed:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue