To use Rust libraries from C++, you need to integrate Crubit into your build system.
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.
You can find a complete, working example project showing how to set up CMake with Crubit in examples/build_systems/cmake.
We intend to add support for Bazel soon.