Rust for Linux
![]() | |
Developer(s) |
|
---|---|
Repository | github |
Written in | Rust |
Available in | English |
License | GPL-2.0-only with Linux-syscall-note. |
Website | rust-for-linux![]() |
Rust for Linux is a series of patches to the Linux kernel that adds Rust as a second programming language to C for writing kernel components.
History
The Linux kernel has been primarily written in C and assembly language since its first release in 1991. Around 1997, the addition of C++ was considered and experimented upon for two weeks before being scrapped.[1] Rust was created in 2006 and combines the performance of low-level programming languages (such as C) with a focus on memory safety and a user-friendly tool set and syntax.[2]
The Rust for Linux project was announced in 2020 in the Linux kernel mailing list with goals of leveraging Rust's memory safety to reduce bugs when writing kernel drivers.[3] At the Open Source Summit 2022, Linus Torvalds stated that the incorporation of the project's work could begin as soon as the Linux 5.20 release, with a planned release date of October or November 2022.[4]
References
- ^ Claburn, Thomas (2022-06-23). "Linus Torvalds says Rust is coming to the Linux kernel". The Register. Retrieved 2022-07-25.
- ^ Perkel, Jeffrey M. (2020-12-01). "Why scientists are turning to Rust". Nature. 588 (7836): 185โ186. doi:10.1038/d41586-020-03382-2.
- ^ Simone, Sergio De (2021-04-27). "Using Rust to Write Safe and Correct Linux Kernel Drivers". InfoQ. Retrieved 2022-08-04.
- ^ Vaughan-Nichols, Steven (2022-06-27). "Linus Torvalds is cautiously optimistic about bringing Rust into Linux kernel's next release". ZDNet. Retrieved 2022-08-04.