forked from cwtch.im/libcwtch-rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
examples | 2 years ago | |
src | 2 years ago | |
.gitignore | 2 years ago | |
Cargo.lock | 2 years ago | |
Cargo.toml | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
build.rs | 2 years ago | |
libCwtch.h | 2 years ago |
README.md
libCwtch-rs
Rust bindings for libCwtch
Example echobot in examples/echobot.rs (cargo run --example echobot
-- assumes tor is on $PATH)
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/cwtchlib_go/bindings.rs