Description
We already have a budding build tools chapter mostly established to showcase build time crates like cc. My feeling is that we could go further with this formula and expand it to (or suplement it with) a full blown chapter dedicated to various rust ffi stories (calling rust, calling from rust, generating bindings).
My main concern is that the ffi stuff might not yeld well to the short snippet problem/solution approach of the cookbook, rather requiring a more narrative driven form (please see few nice ffi guides/tutorials below).
- @fitzgen 's - http://fitzgeraldnick.com/2017/03/07/what-the-ffi.html
- @shepmaster 's - http://jakegoulding.com/rust-ffi-omnibus/
- @Michael-F-Bryan 's - https://michael-f-bryan.github.io/rust-ffi-guide/
- @steveklabnik 's FFI chapter in TRPL 1'st moved to nomicon - https://doc.rust-lang.org/nomicon/ffi.html
Otherwise it might be a relatively good topic for a standalone book as there is certainly enough material!
Sorry for the pings guys but I wanted to pick your brains on the matter! And I certainly do not want to step on anyone's toes or double the effort.