Example to call Rust from C++
author (attribution) : 青子守歌 (aokomoriuta)
URL : https://github.com/aokomoriuta
This project is multi-licensed. You can select the license of your choice from as following:
- Creative Commons Attribution-ShareAlike 3.0 Unported
- Creative Commons Attribution-Noncommercial 3.0 Unported
- GNU General Public License v3.0 or later
$ cd src
$ make
$ ./CallRustFromCpp
Hello, world! [from C++]
Hello, world! [from Rust]
$ cd src
$ make -f Makefile_a
$ ./CallRustFromCpp
Hello, world! [from C++]
Hello, world! [from Rust]