Skip to content

Getting started

charlie derr edited this page Sep 26, 2025 · 5 revisions

How to get started with MORK

First get Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

and switch to nightly build chain:

rustup toolchain install nightly

rustup default nightly

Then install PathMap and MORK:

git clone https://github.com/Adam-Vandervorst/PathMap
cd PathMap
RUSTFLAGS="-C target-cpu=native" cargo build --release
cd ..
git clone https://github.com/trueagi-io/MORK
cd MORK/kernel
RUSTFLAGS="-C target-cpu=native" cargo build --release

Now add your code to kernel/src/main.rs: fn main() { and compile again from the kernel folder with

RUSTFLAGS="-C target-cpu=native" cargo build --release

then run with

../target/release/mork

or for convenience build&run combined:

RUSTFLAGS="-C target-cpu=native" cargo build --release && ../target/release/mork


It is possible to run dedicated files by mork run <file>.

It is possible to run the benchmarks or tests instead with mork bench all and mork test.

Those above two are options use the mork binary produced from building the kernel, usually located at MORK/target/release.


Notes: Currently the main branch has to be utilized to work with variables properly.

Clone this wiki locally