Skip to content

moxin-org/moxin

Repository files navigation

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) ?

Building and Running

First, install Rust.

Then, install the required WasmEdge WASM runtime:

curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasi_nn-ggml

source $HOME/.wasmedge/env

macOS

Then, on a standard desktop platform (macOS), simply run:

cd ~/moxin
cargo run

Linux

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