Lightning Talk: C++ and Rust Bindings - Mixing It Best With CMake
summary
Recipe for mixing C++ and Rust with CMake: a concrete example builds a cargo library named Mixology, adds the regex and cxx crates, and exposes Rust code to C++ via cxx bindings while parsing with Boost.Spirit and passing data with Boost.Fusion adapters. Rust regex is claimed faster; tests run from CTest using a forked bridge so Rust tests execute inside CMake hermetic builds and a demo shows a failing test and the build output.
AI-written summary · about
related talks
25mRust and C++
35mÀ la carte: mix and match C, Rust and Go!
45mC++ Rust and Qt Easier than you think
31mEmbedding Rust in C/C++
59mRust for C++ developers - What you need to know to get rolling with crates
41mC++ Migration Strategies
36mUsing Rust with Ruby
56mGet the best of both worlds: Integrating Rust with other languages
