I'm making a Dart library that uses FFI to interact with Rust code and I have some questions.
I couldn't find any official information about native interop behavior and I've been steering only by other examples and Dart SDK code.
For instance, Dart FFI doesn't map bool
types directly, instead, it uses Int8
. I also don't know what happens if the sizes of the types don't match. Is there any documentation that explains these "rules"?