- 1. Rust ❤️ C++
- 2. Core concepts
- 3. Tutorial
- 4. Other Rust–C++ interop tools
- 5. Multi-language build system options
- 5.1. Cargo
- 5.2. Bazel or Buck2
- 5.3. CMake
- 5.4. More...
- 6. Reference: the bridge module
- 6.1. extern "Rust"
- 6.2. extern "C++"
- 6.3. Shared types
- 6.4. Attributes
- 6.5. Async functions
- 6.6. Error handling
- 7. Reference: built-in bindings
- 7.1. String — rust::String
- 7.2. &str — rust::Str
- 7.3. &[T], &mut [T] — rust::Slice<T>
- 7.4. CxxString — std::string
- 7.5. Box<T> — rust::Box<T>
- 7.6. UniquePtr<T> — std::unique_ptr<T>
- 7.7. SharedPtr<T> — std::shared_ptr<T>
- 7.8. Vec<T> — rust::Vec<T>
- 7.9. CxxVector<T> — std::vector<T>
- 7.10. *mut T, *const T raw pointers
- 7.11. Function pointers
- 7.12. Result<T>