#interface #profile #protocols #contact #communicate #bindings #cwtch

libcwtch

libcwtch is an interface to a Cwtch app that allows creating of profiles to communicate with contacts over the Cwtch protocol

13 releases (7 breaking)

0.8.0 Feb 25, 2024
0.7.0 Sep 28, 2023
0.6.1 Sep 23, 2023
0.6.0 Jun 26, 2023
0.1.0 Sep 15, 2021

#7 in #communicate

Download history 115/week @ 2024-02-19 75/week @ 2024-02-26 2/week @ 2024-03-04 8/week @ 2024-03-11 43/week @ 2024-04-01

51 downloads per month
Used in cwtch-imp

MIT license

105KB
2K SLoC

libCwtch-rs

Rust bindings for libCwtch autobindings

Example echobot in examples/echobot.rs (cargo run --example echobot -- assumes tor is on $PATH)

Building

Updating libCwtch and bingings.rs with 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). cargo build automatically calls bindgen for us and will regenerate src/cwtchlib_go/bindings.rs if libCwtch.h has changed.

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.

Dependencies

~2.2–5MB
~98K SLoC