Re: [PATCH v3 0/5] Check Rust signatures at compile time

2025-03-09 Thread Miguel Ojeda
On Mon, Mar 3, 2025 at 9:45 AM Alice Ryhl wrote: > > Rust has two different tools for generating function declarations to > call across the FFI boundary: > > * bindgen. Generates Rust declarations from a C header. > * cbindgen. Generates C headers from Rust declarations. > > However, we only use b

[PATCH v3 0/5] Check Rust signatures at compile time

2025-03-03 Thread Alice Ryhl
Rust has two different tools for generating function declarations to call across the FFI boundary: * bindgen. Generates Rust declarations from a C header. * cbindgen. Generates C headers from Rust declarations. However, we only use bindgen in the kernel. This means that when C code calls a Rust f