Re: [PATCH v2 0/7] Rust Abstractions for PWM subsystem with TH1520 PWM driver

From: Miguel Ojeda
Date: Wed Jun 11 2025 - 12:55:44 EST


On Wed, Jun 11, 2025 at 5:14 PM Michal Wilczynski
<m.wilczynski@xxxxxxxxxxx> wrote:
>
> The kernel config option that is different on my setup is:
> CONFIG_RUST_BUILD_ASSERT_ALLOW=y

Yeah, code must work with `CONFIG_RUST_BUILD_ASSERT_ALLOW=n` -- the
config is an escape hatch just in case a user toolchain cannot build
the code for some reason.

In other words, if a `build_assert!` is triggered, then that is a bug
(likely in new callers misusing an API, but it could also be in the
callees, of course).

We may eventually remove it, or perhaps invert its meaning so that
`allmodconfig` doesn't enable it, which is how I guess you ended up
with it, right?

I hope that helps.

Cheers,
Miguel