mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-06-28 12:09:30 +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.
27 lines
569 B
TOML
27 lines
569 B
TOML
[package]
|
|
name = "chat-cli"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "chat-cli"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Workspace dependencies (sorted)
|
|
crossbeam-channel = { workspace = true }
|
|
logos-chat = { workspace = true }
|
|
|
|
# External dependencies (sorted)
|
|
anyhow = "1.0"
|
|
arboard = "3"
|
|
base64 = "0.22"
|
|
clap = { version = "4", features = ["derive"] }
|
|
crossterm = "0.29"
|
|
ratatui = "0.29"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|