Skip to content
Niels Sascha Reedijk edited this page Apr 23, 2023 · 70 revisions

Welcome to the Rust-on-Haiku repository. In here Haiku-specific patches for Rust are tracked.

The repository is set up as follows:

  • There are tags for each of the rust releases that will work on Haiku. (e.g. rust-haiku-1.34.2
  • The haiku-stable branch contains the latest ported stable release
  • There is also a haiku-beta and a haiku-nightly. These are updated whenever I make a succesful build.

The haiku-beta and haiku-nightly repositories are not frequently updated, usually once per release cycle.

The advised method of building Rust on Haiku is by using a cross-compiler. There is a repository with container build scripts to help automate the process. The wiki still contains instructions on how to set up a cross-compiler for Rust 1.63.0 and before.

Tag Build Platform Notes
rust-haiku-1.30.0 R1 Beta 1 Build instructions
rust-haiku-1.31.1 R1 Beta 1 Build instructions
rust-haiku-1.32.0 R1 Beta 1 Build instructions
rust-haiku-1.33.0 R1 Beta 1 Build instructions
rust-haiku-1.34.2 R1 Beta 1 Build instructions
rust-haiku-1.35.0 R1 Beta 1 Build instructions
rust-haiku-1.36.0 R1 Beta 1 Build instructions
rust-haiku-1.37.0 R1 Beta 1 Build instructions
rust-haiku-1.38.0 R1 Beta 1 Build instructions
rust-haiku-1.39.0 R1 Beta 1 Due to issue rust-lang#61861 it is not possible to cross-compile the tools
rust-haiku-1.40.0 R1 Beta 1 Build instructions
rust-haiku-1.41.0 R1 Beta 1 Build instructions
rust-haiku-1.42.0 R1 Beta 1 Build instructions
rust-haiku-1.43.0 R1 Beta 1 Build instructions
rust-haiku-1.44.0 R1 Beta 2 Build instructions
rust-haiku-1.45.0 R1 Beta 2 Build instructions; RLS will not build because it depends on a broken net2
rust-haiku-1.46.0 R1 Beta 2 Build instructions; RLS will not build because it depends on a broken net2
rust-haiku-1.47.0 R1 Beta 2 Build instructions; Needs a manually fixed curl-sys to link to system lib
rust-haiku-1.48.0 R1 Beta 2 Build instructions; Needs a manually fixed curl-sys to link to system lib
rust-haiku-1.49.0 R1 Beta 2 Build instructions; Needs a manually fixed curl-sys to link to system lib
rust-haiku-1.50.0 R1 Beta 2 Build instructions; Needs a manually fixed curl-sys to link to system lib
rust-haiku-1.51.0 R1 Beta 2 Build instructions
rust-haiku-1.52.0 R1 Beta 2 Build instructions
rust-haiku-1.53.0 R1 Beta 2 Build instructions
rust-haiku-1.54.0 R1 Beta 3 Build instructions
rust-haiku-1.55.0 R1 Beta 3 Build instructions
1.56.0 R1 Beta 3 Build instructions
1.57.0 R1 Beta 3 Build instructions
1.58.0 R1 Beta 3 Build instructions
1.59.0 R1 Beta 3 Build instructions
1.60.0 R1 Beta 3 Build instructions
rust-haiku-1.62.0 R1 Beta 3 Build instructions
rust-haiku-1.63.0 R1 Beta 3 Build instructions
rust-haiku-1.66.0 R1 Beta 4 container build: x86 - x86-64
rust-haiku-1.67.0 R1 Beta 4 container build: x86 - x86-64
rust-haiku-1.69.0 R1 Beta 4 container build
x86: podman build --build-arg HAIKU_CROSS_COMPILER_TAG=x86_gcc2h-r1beta4 --build-arg RUST_REV=rust-haiku-1.69.0 --build-arg HAIKUPORTS_URL=https://eu.hpkg.haiku-os.org/haikuports/master/x86_gcc2/current/ --build-arg INSTALL_PACKAGES="openssl_x86 openssl_x86_devel curl_x86 curl_x86_devel nghttp2_x86 nghttp2_x86_devel libssh2_x86 libssh2_x86_devel" --build-arg RUST_XPY_COMMAND=dist --build-arg RUST_XPY_CONFIG=configs/config-stable-x86.toml .
x86_64: podman build --build-arg HAIKU_CROSS_COMPILER_TAG=x86_64-r1beta4 --build-arg RUST_REV=rust-haiku-1.69.0 --build-arg HAIKUPORTS_URL=https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/ --build-arg INSTALL_PACKAGES="openssl openssl_devel curl curl_devel nghttp2 nghttp2_devel libssh2 libssh2_devel" --build-arg RUST_XPY_COMMAND=build --build-arg RUST_XPY_CONFIG=configs/config-stable-x86_64.toml --tag rust-haiku-x86_64:1.69.0 .