Core concepts of CXX interop
masterCXX provides safe FFI between Rust and C++ by allowing developers to write idiomatic code on both sides of the boundary.
Key features include:
- Idiomatic code: Rust code looks like normal Rust, and C++ code looks like normal C++, avoiding the need for manual, error-prone C-style FFI glue.
- Type Safety: Uses an expressive system of opaque types, shared types, and standard library type bindings.
- Ownership and Borrowing: Enables API design that captures the proper ownership and borrowing contracts of the interface across the language boundary.