Logo
Explore Help
Sign In
logos-messaging/libchat
1
0
Fork 0
You've already forked libchat
mirror of https://github.com/logos-messaging/libchat.git synced 2026-04-02 09:33:12 +00:00
Code Issues Packages Projects Releases Wiki Activity
libchat/crates/client/Cargo.toml

14 lines
172 B
TOML
Raw Normal View History

Flatten Repos (#70) * move to “crates” style folder * Update workspace * clear crate names * Rename crate folders based on feedback * Use workspace dependencies instead of paths * Move updated files from core
2026-03-24 18:21:00 -07:00
[package]
name = "client"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["rlib"]
[dependencies]
libchat = { workspace = true }
feat: implement Client crate and C FFI bindings Implement a `client` crate that wraps the `libchat` context behind a simple `ChatClient<D>` API. The delivery strategy is pluggable via a `DeliveryService` trait, with two implementations provided: - `InProcessDelivery` — shared `MessageBus` for single-process tests - `CDelivery` — C function-pointer callback for the FFI layer Add a `client-ffi` crate that exposes the client as a C API via `safer-ffi`. A `generate-headers` binary produces the companion C header. Include two runnable examples: - `examples/in-process` — Alice/Bob exchange using in-process delivery - `examples/c-ffi` — same exchange written entirely in C; smoketested under valgrind (to catch memory leaks) in CI iterates: #71
2026-03-26 21:34:09 +01:00
[dev-dependencies]
tempfile = "3"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 27ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API