Testing of Rust FFI Code I'm writing a C FFI wrapper for a Rust library.

Are there any tips and best practices for testing these FFI bindings?

Ideally, I'd like to:

- Ensure that the code works (unit tests)
- Ensure that the code works (integration test)
- Ensure that there are no memory leaks
- Do all this in an automated way

Integrating all this into `cargo test` would be nice but using some kind of C testing tool would be OK too.