Moxin: a Rust AI LLM client built atop Robius
Moxin is an AI LLM client written in Rust to demonstrate the functionality of the Robius, a framework for multi-platform application development in Rust.
⚠️ Moxin is just getting started and is not yet fully functional.
The following table shows which host systems can currently be used to build Robrix for which target platforms.
Host OS | Target Platform | Builds? | Runs? |
---|---|---|---|
macOS | macOS | ✅ | ✅ |
Linux | ubuntu(x86_64-unknown-linux-gnu) | ✅ | ? |
First, install Rust.
Then, install the required WasmEdge WASM runtime:
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install_v2.sh | bash
source $HOME/.wasmedge/env
Obtain the source code from this repository:
git clone https://github.com/moxin-org/moxin.git
Then, on a standard desktop platform (macOS), simply run:
cd moxin
cargo run
Alternatively, on the Linux platform, you need to ensure the following dependencies are installed (e.g., Ubuntu.):
sudo apt-get update
# openssl
sudo apt-get install libssl-dev pkg-config
# libclang for bindgen
sudo apt-get install llvm clang libclang-dev
# binfmt
sudo apt install binfmt-support
# Xcursor、X11、asound and pulse
sudo apt-get install libxcursor-dev libx11-dev libasound2-dev libpulse-dev
Then, run:
cd moxin
cargo run