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
|
@ -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…
Reference in New Issue
Block a user