mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 04:59:27 +00:00
Both file and logos-delivery transports are now compiled into a single binary and selected at runtime (default: logos-delivery), replacing the env-var-driven build-time cfg.
23 lines
807 B
Markdown
23 lines
807 B
Markdown
# libchat
|
|
Supporting library for Logos-chat
|
|
|
|
## Example app
|
|
|
|
[`bin/chat-cli`](bin/chat-cli/) is an end-to-end encrypted CLI chat app
|
|
built on this library. By default it uses [logos-delivery](https://github.com/logos-messaging/logos-delivery)
|
|
(Waku-based) as the transport so two users anywhere in the world can chat by
|
|
sharing an intro bundle. A local file transport is also bundled in; pick at
|
|
runtime with `--transport <logos-delivery|file>`.
|
|
|
|
```sh
|
|
# Build logos-delivery with Nix
|
|
nix build .#logos-delivery
|
|
# Build chat-cli with Cargo
|
|
LOGOS_DELIVERY_LIB_DIR=./result/lib cargo build --release -p chat-cli
|
|
# Run binary (defaults to --transport logos-delivery)
|
|
./target/release/chat-cli --name alice
|
|
```
|
|
|
|
See [`bin/chat-cli/README.md`](bin/chat-cli/README.md) for full build,
|
|
run, and test instructions.
|