/cxx-xmake-example

modern cpp with the power of rust

Primary LanguageRust

modern cpp with rust

Try to find a way to call rust from within cpp side.

There are some tools I have used.

  • linker: mold
  • build system: xmake
  • compile toolchain: clang-13
  • rustc: 1.59.0(you have to use specific version for compatibility with clang)
  • interoperation: cxx

Run

xmake 
xmake run

TODO

  • LTO/IPO support
  • CI/CD
  • Dockerfile

Credits