On Thu, Feb 27, 2025 at 1:11 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote: > > I don't think there is tooling for it today. We need the opposite of > bindgen, which does exist in a tool called cbindgen. Unfortunately, > cbindgen is written to only work in cargo-based build systems, so we > cannot use it. It doesn't require Cargo, e.g. see my reply to Daniel: https://rust-for-linux.zulipchat.com/#narrow/channel/288089-General/topic/What.20is.20the.20status.20on.20C.20APIs.20for.20Rust.20kernel.20code.3F/near/420712657 Even if it did require something extra for complex usage or similar, we could ask the maintainers or I could perhaps come up with something to generate whatever inputs they need. Cheers, Miguel