Version 9 (modified by nielx, 3 years ago) (diff)

Update to Rust 1.2.0

Welcome to Rust for Haiku

I have worked on a port of Rust to the Haiku operating system. Rust is a fast and safe programming language. And Haiku is an open source operating system that targets desktop computers.

Current version: 1.2.0

The current version of Rust for Haiku is labeled 'Rust 1.2.0'. It is based on the official 1.2.0 rust release.

Available is:

The easiest way to get started is by downloading the both the runtime and the compiler packages, and placing it in your /boot/system/packages folder. It will not work if you put the package in your home directory. Rust expects certain libraries to be in certain places.

In order to use Rust, you need to use Haiku's standard GCC2 hybrid configuration (x86_gcc2). A 'pure' gcc 4 system has not been tested, and packages are not (yet) available.

Major todos

There are some big things still to do:

  • Port cargo to Haiku. Cargo is the Rust package manager. The challenges are that cargo is self-hosting (like Rust), so it requires a stage 0 as well. Also, Haiku is a special directory layout since the introduction of package management, so cargo will need to conform to that.
  • Creating some basic Haiku bindings to (for example) the kernel interface.
  • Eventually upstreaming the changes (starting with the git submodules to simplify that part).

Porting notes

The porting effort has been documented. You can find it at PortingRust.