Overview of autocxx
mainautocxx is a tool for automatic, safe interop between Rust and C++. It combines the automatic bindings generation capabilities of bindgen with the safety and ergonomics of cxx.
Key features include:
- Automating fiddly tasks like calling destructors, converting strings, and handling raw pointers.
- Providing ergonomic C++ types and functions that behave similarly to safe Rust types.
- Supporting calls from both Rust to C++ and C++ to Rust.
Use autocxx when you have a large existing C++ codebase and want to use its types and functions from Rust with minimal manual binding effort.