mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-04-01 17:13:13 +00:00
17 lines
519 B
Markdown
17 lines
519 B
Markdown
|
|
# in-process
|
||
|
|
|
||
|
|
An example Rust application built on top of [`crates/client`](../../crates/client).
|
||
|
|
|
||
|
|
It demonstrates that creating a working chat client in pure Rust is trivial: depend on
|
||
|
|
`crates/client`, pick a `DeliveryService` implementation (here the in-memory
|
||
|
|
`InProcessDelivery` shipped with the crate), and wire up `ChatClient`. No boilerplate, no FFI.
|
||
|
|
|
||
|
|
## Running
|
||
|
|
|
||
|
|
```
|
||
|
|
cargo run -p in-process
|
||
|
|
```
|
||
|
|
|
||
|
|
The binary performs an Alice-Bob message exchange entirely in-process and prints
|
||
|
|
the exchanged messages to stdout.
|