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 6ccf83c2c7 Merge pull request 'Use rustfmt to format some of the Rust code' (#6) from schlink/libcwtch-rs:formatting into main 3 months ago
examples does a bit of clean up of the echobot example 3 months ago
src use rustfmt to format some of the Rust code 3 months ago
.gitignore gitignore ignore example_cwtch_dir 3 months ago
Cargo.lock add enums for connection state and contact authorization 3 months ago
Cargo.toml add docs.rs documentation metadata 3 months ago
LICENSE add MIT LICENSE 3 months ago
README.md adding documentations and examples and tweeks to be more rustful 3 months ago
build.rs libcwtch-rs: Rust bindings for libcwtch-go 3 months ago
libCwtch.h libcwtch-rs: Rust bindings for libcwtch-go 3 months 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

Todo