diff options
author | Artemis Tosini <me@artem.ist> | 2023-12-16 05:27:33 +0000 |
---|---|---|
committer | Artemis Tosini <me@artem.ist> | 2023-12-16 05:36:59 +0000 |
commit | 285216aceb0fdfdad72ee7b82b166cba33493485 (patch) | |
tree | a24049e9381839f9f66d1450438e5f04310019c9 /pkgs/build-support | |
parent | 08d6cec730e825d240ddf1df12808f502caf3b87 (diff) |
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
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/rust/replace-workspace-values.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/build-support/rust/replace-workspace-values.py b/pkgs/build-support/rust/replace-workspace-values.py index acbc38c8ae39c..2b88f1fa79bbe 100644 --- a/pkgs/build-support/rust/replace-workspace-values.py +++ b/pkgs/build-support/rust/replace-workspace-values.py @@ -96,6 +96,13 @@ def main() -> None: 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: return |