feat: add test.c
This commit is contained in:
@@ -7,7 +7,7 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[lib]
|
||||
name = "dotalib"
|
||||
name = "dota"
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -12,3 +12,8 @@ C
|
||||
cbindgen --config cbindgen.toml --crate dotalib --lang c --output dotalib.h
|
||||
```
|
||||
|
||||
Compile
|
||||
```shell
|
||||
cargo build
|
||||
gcc -Ltarget/debug/ -ldota test.c
|
||||
```
|
||||
5
__misc/dotalib/test.c
Normal file
5
__misc/dotalib/test.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "dotalib.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
print_hello_world();
|
||||
}
|
||||
Reference in New Issue
Block a user