feat: move .a lib

This commit is contained in:
2021-01-10 15:17:22 +08:00
parent bbc0adf1fa
commit 505f44df42
7 changed files with 0 additions and 0 deletions

19
__ffi/dotalib/README.md Normal file
View File

@@ -0,0 +1,19 @@
Install cbindgen:
https://github.com/eqrion/cbindgen
C++
```shell
cbindgen --config cbindgen.toml --crate dotalib --output dotalib.h
```
C
```shell
cbindgen --config cbindgen.toml --crate dotalib --lang c --output dotalib.h
```
Compile
```shell
cargo build
gcc -Ltarget/debug/ -ldota test.c
```