feat: add rust link a

This commit is contained in:
2021-01-24 23:10:46 +08:00
parent db388a6e37
commit c6e36fb414
9 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
_:
@just --list
# generage .rs
create-rs:
bindgen hello.h -o src/hello.rs
# create .a file
create-ar:
gcc -c -o hello.o hello.c
ar -cr libhello.a hello.o
# re-run
re-run:
rm hello.o || true
rm libhello.a || true
rm -rf target/ || true
@just create-ar
@just create-rs
cargo r