Hi!
This is a very minimalistic example of calling a Rust struct and associated functions from C++, while doing compilation in C++ as well. It's done using cxxbridges
, and is a trimmed down version of https://github.com/paandahl/cpp-with-rust/tree/main , please go check their amazing example for more info.
Mostly using this repo for questions and as an example: for more of my projects involving C++ and Rust interop, see other repos.