libcwtch

Crates.iolibcwtch
lib.rslibcwtch
version0.8.0
sourcesrc
created_at2021-09-15 20:08:53.549379
updated_at2024-02-25 02:59:31.905267
descriptionlibcwtch is an interface to a Cwtch app that allows creating of profiles to communicate with contacts over the Cwtch protocol
homepage
repositoryhttps://git.openprivacy.ca/cwtch.im/libcwtch-rs
max_upload_size
id451963
size129,373
Dan Ballard (dballard)

documentation

https://docs.rs/libcwtch/

README

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.

Commit count: 0

cargo fmt