chore: move __c_cpp/* to __ffi

This commit is contained in:
2020-10-17 16:07:46 +08:00
parent 754ff1ed60
commit a9df08bc6d
11 changed files with 0 additions and 0 deletions

29
__ffi/c_export/README.md Normal file
View File

@@ -0,0 +1,29 @@
Rust libray build:
```
cargo build
```
Python test:
```
python call_in_python.py
```
C test:
```
gcc call_in_c.c -L target/debug/ -lstringtools
```
NodeJS test:
```
npm install ffi
node call_in_node.js
```
Reference:
http://siciarz.net/24-days-of-rust-calling-rust-from-other-languages/