Warnings on workspace level

With the new Rust 2024 edition coming up, I want to include the warnings

#![warn(
    missing_unsafe_on_extern,
    unsafe_op_in_unsafe_fn
)]

into a codebase without having to specify them for every individual crate within this workspace. This should simplify the transition to the new edition.

However, I have not yet found a way to enable these warnings for every crate in the workspace from one singular point instead of specifying it for every individual crate.

1 Like

You can use workspace inheritance for lints.

3 Likes