Examples
- Demo - simplest possible demo
- POD example - plain-old-data types, passed by value
- Non-trivial type on the stack -
moveit!and C++ objects on the Rust stack - S2 example - example using S2 geometry library
- Steam example - example using (something like) the Steam client library
- LLVM example - wrapping part of LLVM, a large real-world header set
- Subclass example - example using subclasses
- Chromium RenderFrameHost example - a memory-safe handle to an object C++ owns
- C++ calling Rust - the other direction, plus C++ exceptions as
Result - Reference wrappers - the experimental
unsafe_references_wrappedsafety policy; needs nightly - Integration tests
- hundreds of small snippets
Contributions of more examples to the examples directory are much appreciated!