mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-06-28 03:59:27 +00:00
The client, not the app, now drives the transport; events are delivered asynchronously, per ADR 0001. - ChatClient owns Arc<Mutex<Core>> + a worker thread. - The worker select!s over the inbound and shutdown channels; Drop joins it. Outbound runs on the caller's thread. - A single Transport (DeliveryService + inbound()) owns both directions of the boundary, so the client takes one transport rather than a (delivery, inbound) pair. InProcessDelivery::new, CDelivery, and chat-cli's transports implement it. - FFI replaces client_receive with client_push_inbound + client_poll_events. - chat-cli drains Receiver<Event>; inbound and event channels are both crossbeam. - Corrects ADR 0001's inbound sequence to push — the worker parks on select!, it never polls.
25 lines
496 B
TOML
25 lines
496 B
TOML
[package]
|
|
name = "logos-chat"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
crate-type = ["rlib"]
|
|
|
|
[dependencies]
|
|
# Workspace dependencies (sorted)
|
|
chat-sqlite = { workspace = true }
|
|
components = { workspace = true }
|
|
crossbeam-channel = { workspace = true }
|
|
libchat = { workspace = true }
|
|
logos-account = { workspace = true, features = ["dev"]}
|
|
|
|
# External dependencies (sorted)
|
|
parking_lot = "0.12"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
|
|
[dev-dependencies]
|
|
# External dependencies (sorted)
|
|
tempfile = "3"
|