Rust bindings for libcwtch-go
Go to file
Sarah Jamie Lewis 1dc1be542c Merge branch 'main' into formatting 2021-09-16 19:52:08 +00:00
examples does a bit of clean up of the echobot example 2021-09-15 22:39:30 -04:00
src use rustfmt to format some of the Rust code 2021-09-15 21:57:36 -04:00
.gitignore gitignore ignore example_cwtch_dir 2021-09-15 13:08:14 -07:00
Cargo.lock add enums for connection state and contact authorization 2021-09-15 12:17:45 -07:00
Cargo.toml add docs.rs documentation metadata 2021-09-15 13:13:23 -07:00
LICENSE add MIT LICENSE 2021-09-03 20:39:03 -07:00
README.md adding documentations and examples and tweeks to be more rustful 2021-09-08 00:38:18 -07:00
build.rs libcwtch-rs: Rust bindings for libcwtch-go 2021-09-03 20:36:35 -07:00
libCwtch.h libcwtch-rs: Rust bindings for libcwtch-go 2021-09-03 20:36:35 -07: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