Re: [PATCH] rust: Enable the new_uninit feature for kernel and driver crates

From: Miguel Ojeda
Date: Mon Feb 27 2023 - 08:49:06 EST


On Mon, Feb 27, 2023 at 2:15 PM Andreas Hindborg <nmi@xxxxxxxxxxxx> wrote:
>
> What is the purpose of adding the feature here? The kernel crate seems
> to compile fine without this.

`rust_allowed_features` is the list of features that crates outside
`rust/` can use (e.g. drivers).

The goal is to control which unstable features are used outside the
`kernel` crate and to avoid mistakenly relying on them.

Cheers,
Miguel