Skip to content

Getting started

Patrick Hammer edited this page Sep 8, 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

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

Clone this wiki locally