build instructions in readme

This commit is contained in:
psippl 2022-02-08 16:13:06 -10:00
parent c893eb9c5f
commit dfee5d1b8e
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
# Semaphore-rs
Rust support library for Semaphore
## Build static lib via ffi
Build e.g. for iOS simulator:
`cargo build --release --target=aarch64-apple-ios-sim`
Generate header file:
`cbindgen ./src/lib.rs -c cbindgen.toml | grep -v \#include | uniq > libsemaphore.h`