mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-08-04 22:23:10 +00:00
* feat: separate embedded p2p delievery to its own crate * feat: separate p2p config in its own crate * chore: split embed module * chore: refactor registry config * feat: split logos chat crate * chore: refactor
17 lines
526 B
Markdown
17 lines
526 B
Markdown
# message-exchange
|
|
|
|
An example Rust application built on top of [`crates/generic-chat`](../../).
|
|
|
|
It demonstrates that creating a working chat client in pure Rust is trivial: depend on
|
|
`crates/generic-chat`, pick a `DeliveryService` implementation (here the in-memory
|
|
`InProcessDelivery` shipped with the crate), and wire up `ChatClient`. No boilerplate, no FFI.
|
|
|
|
## Running
|
|
|
|
```
|
|
cargo run --example message-exchange
|
|
```
|
|
|
|
The binary performs a message exchange entirely in-process and prints
|
|
the exchanged messages to stdout.
|