Rust Expands Horizons: New Platform Support

Online Python Trainer for Beginners

Learn Python easily without overwhelming theory. Solve practical tasks with automatic checking, get hints in Russian, and write code directly in your browser — no installation required.

Start Course

Rust Expands Its Ecosystem: New Platform Added to Official Compilation Targets



The Rust language development team has officially announced the addition of support for another target platform. This time, the RISC-V 64-bit architecture for the FreeBSD operating system has been added to the Tier-2 support list. This is a significant event for the embedded development community and open-source enthusiasts.



What does this mean in practice? Developers can now compile and run Rust code on systems running FreeBSD built on 64-bit RISC-V processors. Previously, support was limited to the Linux platform on the same architecture.



This innovation is the result of collaboration between engineers from SerenityOS and several independent contributors. They adapted the standard library (std) and system calls to the specifics of FreeBSD on RISC-V.



Support Details

  • Level: Tier 2 (guaranteed build, but without automatic testing on every commit).
  • Target Triple: riscv64gc-unknown-freebsd.
  • Availability: Starting from Rust 1.78 (nightly build) and stable version 1.79.
  • Tools: For cross-compilation, you will need rustup target add riscv64gc-unknown-freebsd.


Why Is This Important?

RISC-V is an open instruction set architecture (ISA) that is gaining popularity in the world of embedded systems, IoT, and even server solutions. FreeBSD, in turn, is known for its stability and widespread use in network infrastructure. Combining these two technologies with Rust offers the following advantages:

  • Safety: Rust provides protection against null pointers and data races at the compilation level.
  • Performance: Native code with no overhead from a virtual machine.
  • Ecosystem: Access to the vast crates.io repository.


How to Get Started?

If you have a RISC-V device (e.g., the StarFive VisionFive 2 board) with FreeBSD installed, simply run:

rustup target add riscv64gc-unknown-freebsdcargo build --target riscv64gc-unknown-freebsd

For cross-compilation from x86-64, you will need to install the appropriate linker (riscv64-unknown-freebsd-ld) from the FreeBSD ports.



This step is part of Rust's long-term strategy to capture the systems programming niche, where C and C++ previously reigned supreme. Each new platform brings us closer to the moment when Rust becomes the de facto standard for writing operating systems, drivers, and critical software.



Stay tuned for updates in the official Rust repository and on our website PythonLib — we continue to cover the most relevant events in the world of programming languages.

Recommended Libraries