chore: reorg
This commit is contained in:
29
__c_cpp/c_export/README.md
Normal file
29
__c_cpp/c_export/README.md
Normal 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/
|
||||
|
||||
Reference in New Issue
Block a user