Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 797 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 797 Bytes

CallRustFromCpp

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:

Usage

dynamic lib (.so)

$ cd src
$ make
$ ./CallRustFromCpp
Hello, world! [from C++]
Hello, world! [from Rust]

static lib (.a)

$ cd src
$ make -f Makefile_a
$ ./CallRustFromCpp
Hello, world! [from C++]
Hello, world! [from Rust]