2025-12-20 22:34:08 -08:00
|
|
|
# libchat
|
2026-01-30 15:56:51 +08:00
|
|
|
|
|
|
|
|
Supporting library for Logos-chat.
|
|
|
|
|
|
2026-02-03 11:05:54 +08:00
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
Install Rust via [rustup](https://rust-lang.org/tools/install/):
|
|
|
|
|
|
2026-01-30 15:56:51 +08:00
|
|
|
## Quick Start
|
|
|
|
|
|
2026-02-03 11:03:18 +08:00
|
|
|
### Using Cargo
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Build
|
|
|
|
|
cargo build
|
|
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
|
cargo test
|
|
|
|
|
|
|
|
|
|
# Run examples
|
|
|
|
|
cargo run --example double_ratchet_basic
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Using Just
|
|
|
|
|
|
|
|
|
|
Install [just](https://github.com/casey/just) to manage complex tasks.
|
2026-01-30 15:56:51 +08:00
|
|
|
|
|
|
|
|
On MacOS, you can install it via Homebrew:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
brew install just
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
After that, run:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Build
|
|
|
|
|
just build
|
|
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
|
just test
|
|
|
|
|
|
|
|
|
|
# Run all examples
|
|
|
|
|
just run-examples
|
|
|
|
|
```
|