Skip to content
Gyubong edited this page Sep 10, 2022 · 5 revisions

Redox is an operating system written entirely in Rust. It allows running userspace Rust programs inside of it without needing to know details of its internals, and this guide will take you through adding RustPython to a Redox build.

Setting up

If you have already built Redox before, you can skip this. Otherwise, just follow these instructions from Redox's book. Essentially, you just run these commands:

curl -sf https://gitlab.redox-os.org/redox-os/redox/raw/master/bootstrap.sh \
  -o bootstrap.sh && \
  bash -e bootstrap.sh && \
  cd redox/

If that doesn't work, look in the book for troubleshooting.

Installing RustPython

Run the script redox/install.sh, either providing the redox directory as the first argument or from the redox directory itself. Then, just run make qemu, and after a long time, Redox should build and boot. Open up a terminal, type rustpython, and you're running RustPython inside of Redox.