Installation
Prerequisites
- Rust 1.87 or later (stable channel) from rust-lang.org
- Cargo (Rust’s package manager, included with Rust)
Installing the CLI Tool
From crates.io
cargo install litsea-cli
From Source
git clone https://github.com/mosuka/litsea.git
cd litsea
cargo build --release
The binary will be available at ./target/release/litsea.
Verify the installation:
./target/release/litsea --help
Using as a Library
Add Litsea to your project’s Cargo.toml:
[dependencies]
litsea = "0.5.0"
Note: Loading models from local files (
load_model_from_path) is synchronous, so no async runtime is needed. An async runtime such astokiois only required if you load models over HTTP/HTTPS with the asyncload_modelmethod (enabled by theremote_modelfeature, which is on by default).
Supported Platforms
Litsea is tested on the following platforms:
| OS | Architecture |
|---|---|
| Linux | x86_64, aarch64 |
| macOS | x86_64 (Intel), aarch64 (Apple Silicon) |
| Windows | x86_64, aarch64 |