22 lines
497 B
Markdown
22 lines
497 B
Markdown
|
# libCwtch-rs
|
||
|
|
||
|
Rust bindings for libCwtch
|
||
|
|
||
|
## Building
|
||
|
|
||
|
### Updating libCwtch and bingings.rs with Bindgen
|
||
|
|
||
|
```
|
||
|
cargo install bindgen
|
||
|
```
|
||
|
|
||
|
libCwtch.so version is specified in build.rs. If updating, also download the corresponding libCwtch.h and delete
|
||
|
the 'preamble from import "C"' section as it imports headers required for the C lib to compile
|
||
|
but that we don't want to create rust bindings for (like importing stdlib.h). Then:
|
||
|
|
||
|
```
|
||
|
bindgen libCwtch.h -o src/gobindings/mod.rs
|
||
|
```
|
||
|
|
||
|
### Todo
|