Sujet : ffi
-
CString à une frontière FFI : distinguer un pointeur emprunté d'une propriété transférée
Maintenir le propriétaire du CString en vie pour les appels par emprunt et n'utiliser la conversion de propriété brute que sous un contrat de retour explicite.
-
Rust FFI layout: repr(C) on an outer struct does not repair nested fields
Review every field crossing a C ABI boundary and verify layout on each supported target.
-
Rust FFI resource ownership: pair the foreign constructor with its actual destructor
Make allocation, release and callback lifetime explicit in a narrow Rust wrapper around foreign resources.
-
Rust FFI unwinding: choose an explicit panic and exception boundary
Separate ordinary error returns, Rust panics and foreign exceptions before selecting the boundary ABI.
Lisible par machine : JSON