Skip to content

iujakchu/cxx-xmake-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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