From 93af906ea96154782ac226916ae39af1e40c72d9 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Fri, 30 Jan 2026 15:56:51 +0800 Subject: [PATCH] feat: use just for quick tasks. --- README.md | 27 ++++++++++++++++++++++++++- double-ratchets/README.md | 3 +-- justfile | 13 +++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 justfile diff --git a/README.md b/README.md index 62066bc..5e4ff3f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ # libchat -Supporting library for Logos-chat + +Supporting library for Logos-chat. + +## Quick Start + +Install [just](https://github.com/casey/just) to manage tasks. + +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 +``` + diff --git a/double-ratchets/README.md b/double-ratchets/README.md index 974deda..345510d 100644 --- a/double-ratchets/README.md +++ b/double-ratchets/README.md @@ -20,8 +20,7 @@ Run examples, ```bash cargo run --example double_ratchet_basic -cargo run --example storage_demo --features storage -cargo run --example storage_demo --features sqlcipher +cargo run --example storage_demo ``` Run Nim FFI example, diff --git a/justfile b/justfile new file mode 100644 index 0000000..5d0d7fb --- /dev/null +++ b/justfile @@ -0,0 +1,13 @@ +# The first receipt is default with build +build: + cargo build + +test: + cargo test + +# Run all examples +run-examples: + cargo run --example double_ratchet_basic + cargo run --example serialization_demo + cargo run --example storage_demo + cargo run --example out_of_order_demo