Fuchsia OS uses Rust to write code extensively

Google recently officially launched Fuchsia OS to the public, and the device that received Fuchsia 1.0 push was the first-generation Nest Hub.

Unlike operating systems such as Chrome OS and Android based on the Linux kernel, Fuchsia uses a brand-new, self-developed Zircon microkernel, which is written in C++. The components of the kernel are written in programming languages ​​such as Go, Rust, Python, and C/C++. For example, the USB driver is written in C++, and the network stack is written in Rust.

Fuchsia support AMD

In the discussion thread about Fuchsia, some developers said that Fuchsia uses Rust to write code extensively. According to the overall code analysis of Fuchsia, Rust has the most lines of code.

In addition to being used in the Zircon kernel, Rust is also approved for use in the entire Fuchsia Platform Source Tree. The proportions of the main programming languages in Fuchsia ​​are as follows (including JSON configuration code):
  • Rust 22%,
  • C++ 18%,
  • C 4%,
  • Go 2%,
  • Python 1%,
  • Dart 1%