2026-04-08 23:15:48 +02:00
|
|
|
# message-exchange
|
|
|
|
|
|
2026-07-09 15:12:58 +08:00
|
|
|
An example Rust application built on top of [`crates/generic-chat`](../../).
|
2026-04-08 23:15:48 +02:00
|
|
|
|
|
|
|
|
It demonstrates that creating a working chat client in pure Rust is trivial: depend on
|
2026-07-09 15:12:58 +08:00
|
|
|
`crates/generic-chat`, pick a `DeliveryService` implementation (here the in-memory
|
2026-04-08 23:15:48 +02:00
|
|
|
`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.
|