Rust's stability story should apply to bool in FFI

Assuming that my current understanding that MSVC on Windows and gcc/clang on Linux/BSD on today-relevant CPUs represent _Bool that way is correct (I don't know my way around GCC and clang sources well enough to check), that would work for me.

I think it would be terribly inefficient to actually leave it up to every programmer to research this, so even if the normative definition was as formulated above, I think it would be good for Rust documentation to say for which targets the definition matches C _Bool. Hopefully at present the answer is "on all supported targets".

1 Like