Rust bindings for libcwtch-go
Go to file
Dan Ballard cfd924d19e as per PR: spelling changes, name changes 2022-04-05 21:11:37 -07:00
examples rm Cargo.lock for lib; add sha512 check to build fetch; typo 2022-01-17 18:39:01 -05:00
src as per PR: spelling changes, name changes 2022-04-05 21:11:37 -07:00
.gitignore rm Cargo.lock for lib; add sha512 check to build fetch; typo 2022-01-17 18:39:01 -05:00
Cargo.toml Merge pull request 'migrate to libcwtch-go 1.5' (#9) from lcg1.5 into main 2022-01-17 19:06:15 -05:00
LICENSE add MIT LICENSE 2021-09-03 20:39:03 -07:00
README.md full lcg 1.5.2 api coverage 2022-01-15 09:16:35 -05:00
build.rs rm Cargo.lock for lib; add sha512 check to build fetch; typo 2022-01-17 18:39:01 -05:00
libCwtch.h lcg 1.5.2 to 1.5.4 unblock_contact() 2022-01-16 14:00:21 -05:00

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

Todo