Based on: https://dev.to/dandyvica/how-to-call-rust-functions-from-c-on-linux-h37
Assuming that g++, make, cargo
are installed:
make
make run
We are using CLang64 because cargo/rust are not available for plain MSys.
In the console: C:\msys64\clang64.exe
:
pacman -Ss cargo
pacman -S clang64/mingw-w64-clang-x86_64-cargo-c
cargo -V
# cargo 1.65.0
LD_LIBRARY_PATH=target/debug ldd ./target/cppcaller