Rust bindings for libcwtch-go
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.
 
 
Dan Ballard 5eb98eccc7 digest bump 1 week ago
examples rm Cargo.lock for lib; add sha512 check to build fetch; typo 4 months ago
src profile convo list by id, handle2id fn 3 weeks ago
.gitignore bump yanked version of block-buffer 4 weeks ago
Cargo.lock digest bump 1 week ago
Cargo.toml profile convo list by id, handle2id fn 3 weeks ago
LICENSE add MIT LICENSE 9 months ago
README.md Allow building from local 4 weeks ago
build.rs Allow building from local 4 weeks ago
libCwtch.h lcg 1.7.1 1 month 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

While developing you can use the LCG_DIR environment variable to specify the directory containing a local libCwtch.so library to override the default one.

This is useful in cases where you are adding or updating APIs prior to a release.

Todo