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.13.0"
Remote model loading over http(s) is opt-in; enable the remote_model
feature if you need it:
litsea = { version = "0.13.0", features = ["remote_model"] }
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 (available only when the opt-inremote_modelfeature is enabled).
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 |