Building
To use Rust libraries from C++, you need to integrate Crubit into your build system.
CMake Support
Currently, Crubit supports integration with CMake via Corrosion. This allows C++ targets in CMake to depend on Rust library targets built with Cargo, with Crubit automatically generating the bindings.
For a detailed walkthrough on how to set up CMake integration, see the Build System Integrations page.
Example Demo
You can find a complete, working example project showing how to set up CMake
with Crubit in
examples/build_systems/cmake.
Other Build Systems
Bazel
We intend to add support for Bazel soon.