The examples/
directory contains copy-pastable example snippets. examples/cpp/
contains example C++ header files, and how to call them from Rust -- for example, examples/cpp/function
shows how to call a C++ function from Rust. examples/rust
contains example Rust modules, and how to call them from C++.
In every case, examples have the following files:
example.h
or example.rs
main.rs
or main.cc
.