Rust-for-Linux/linux
View on GitHub ↗ ★ 4,425 C
Adding support for the Rust language to the Linux kernel.
42 mentions on Hacker News by 34 people: 5 stories, 37 comments · first 2021-03-09 · latest 2026-09-16
20082026
-
…many other project do out-of-tree version well maintained [1] [2] [3] [4] [5] [6] [7] . [1]: https://github.com/Rust-for-Linux/linux Rust for Linux [2]: https://android.googlesource.com/kernel/common/ Android OS linux kernel [3]:…
comment by liamgm · 2026-09-16 · in Building a Linux GPU Driver for the M4 Mac Mini in One Month -
…it into upstream Linux, but there is already a sample implementation that Wedson wrote in 2022: https://github.com/Rust-for-Linux/linux/pull/798
comment by aliceryhl · 2025-10-17 · in Upcoming Rust language features for kernel development -
…to https://docs.kernel.org/process/maintainers.html#rust which has a list of people. There is also https://github.com/Rust-for-Linux/linux/blob/rust-next/MAINT... which is the in-tree documentation of who maintainers are. > The fact that…
comment by steveklabnik · 2025-02-11 · in Rust kernel policy -
…Keep the faith. [1] - https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-trait... [2] - https://github.com/Rust-for-Linux/linux/issues/2 [3] - https://lwn.net/SubscriberLink/991062/b0df468b40b21f5d/ [4] -…
comment by nindalf · 2024-09-26 · in Rewriting Rust -
…been stabilized or on the path to stabilization so you don't need a "bleeding edge" nightly. https://github.com/Rust-for-Linux/linux/issues/2 lists the "unstable features" required by the Rust for Linux codebase. It's a long list! One of…
comment by csande17 · 2024-09-25 · in Committing to Rust in the Kernel -
You're welcome. > Any concerns of the same kind of thing? Here's the canonical list: https://github.com/Rust-for-Linux/linux/issues/2 There's a lot, and I don't know the status of many of them, personally. But I don't see anything there…
comment by steveklabnik · 2024-09-25 · in Committing to Rust in the Kernel -
…to stable features, but the kernel uses unstable features that can and do incur breaking changes. https://github.com/Rust-for-Linux/linux/issues/2
comment by CUViper · 2024-02-18 · in The Linux Kernel Prepares for Rust 1.77 Upgrade -
At least according to the Github's language breakdown for https://github.com/Rust-for-Linux/linux , C is still 98.3% of the repository, and Rust is in the 0.1% of "others".
comment by antoinealb · 2024-02-18 · in The Linux Kernel Prepares for Rust 1.77 Upgrade -
…kernel now? Nope. They've thought that through. (In fact, cargo is only used to build test helpers. https://github.com/Rust-for-Linux/linux/blob/rust/Documentat... )
comment by iudqnolq · 2022-11-18 · in Rust in the 6.2 kernel -
…tree if the experiment doesn't pan out. In the meantime, you can see some of the code samples at https://github.com/Rust-for-Linux/linux/tree/rust/samples/ru...
comment by jiripospisil · 2022-10-03 · in Does Rust belong in the Linux kernel? -
…of things from that first category which aren't in Stable Rust has been shrinking but isn't zero. https://github.com/Rust-for-Linux/linux/issues/2 I don't believe there is a "Special interest group" but since the only comparable team to…
comment by tialaramex · 2022-09-23 · in A pair of Rust kernel modules -
…pretty heavy on generics and macros. Eg for the trait that defines file system operations ( https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb... ) and other bindings to C code. I was actually surprised of seeing those, since…
comment by Matthias247 · 2022-09-13 · in A pair of Linux kernel modules using Rust -
Exactly. A rust panic will call the panic_handler, implemented there: https://github.com/Rust-for-Linux/linux/blob/459035ab65c0ebb... So accessing an array out of bound will have a runtime check that will call the panic handler, and that…
comment by ogoffart · 2022-09-13 · in A pair of Linux kernel modules using Rust -
…the Rust for Linux project has integrated custom fallible allocations (so, works for them, see: https://github.com/Rust-for-Linux/linux/pull/402 ), but the fallible allocator API is not yet stabilized for Rust itself (see:…
comment by mustache_kimono · 2022-08-16 · in Linux 6.0 arrives with performance improvements and more Rust coming -
…For now, it's the opposite: the kernel needs several Rust features which aren't even stable yet ( https://github.com/Rust-for-Linux/linux/issues/2 ). But I agree that, after Rust has been in use in the kernel for a while (and it no longer…
comment by cesarb · 2022-07-11 · in GCC Rust Approved by GCC Steering Committee -
https://github.com/Rust-for-Linux/linux/commits/rust You can see that four merge requests were taken at the same time. #802 is unrelated, while #752, #798, and #796 are related to the echo server. It appears that the author created a merge…
comment by db48x · 2022-07-02 · in Rust async echo server kernel module -
…but it has other commits as well. Can anyone please help my teeny brain of what is going on :( [0]: https://github.com/Rust-for-Linux/linux/commit/4536277a0e619...
comment by mfrw · 2022-07-02 · in Rust async echo server kernel module -
…the Linux licensing rules? [1] https://github.com/torvalds/linux/blob/master/Documentation/... [2] https://github.com/Rust-for-Linux/linux/blob/rust/rust/alloc... [3] https://opensource.stackexchange.com/questions/1357/can-i-li... Edit:…
comment by jokabrink · 2022-06-27 · in Memory safety for the world’s largest software project -
https://github.com/Rust-for-Linux/linux/blob/rust/rust/kerne...
comment by steveklabnik · 2022-06-23 · in Linus Torvalds: Rust for the Kernel Could Possibly Be Merged for Linux 5.20 -
…on and will continue to work features to make Rust more suitable to the Linux kernel. This issue ( https://github.com/Rust-for-Linux/linux/issues/355 ) for features in rustc was opened a year ago and it seems half done. > backwards and…
comment by nindalf · 2022-06-23 · in Linus Torvalds: Rust for the Kernel Could Possibly Be Merged for Linux 5.20 -
…. Check out the issues, especially the “wanted features and bugfixes” for each rust component ( https://github.com/Rust-for-Linux/linux/issues?page=2&q=is%3... ) for more details into all the work that’s happened here. Throughout I have…
comment by nindalf · 2022-06-23 · in Linus Torvalds: Rust for the Kernel Could Possibly Be Merged for Linux 5.20 -
You can `rustc app.rs`, and do all the C Makefile stuff that way too (example in the kernel: https://github.com/Rust-for-Linux/linux/blob/rust/rust/Makef... ). Nothing is forcing you to use Cargo except for convenience.
comment by jitl · 2022-05-03 · in Will Hare replace C? Or Rust? Or Zig? Or anything else? -
…a wishlist of potential or unstable Rust/libstd/libcore/tooling features they'd consider helpful: https://github.com/Rust-for-Linux/linux/labels/prio%3A%20met...
comment by GolDDranks · 2022-04-15 · in Rustaceans at the border -
…doesn't include replies (since this is just the staging ground the rust-for-linux devs are using) https://github.com/Rust-for-Linux/linux/tree/rust-next
comment by gpm · 2021-12-08 · in Rust support in the Linux kernel -
…We have a light / temporary fork of the Rust stdlib allocator with fallible allocation support: https://github.com/Rust-for-Linux/linux/tree/rust/rust/alloc See e.g. https://github.com/Rust-for-Linux/linux/commit/487d7578bd036...
comment by geofft · 2021-10-25 · in Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility -
…It's seems like something a trying to workaround a language limitation. Not nice at all. Source: https://github.com/Rust-for-Linux/linux/blob/rust/samples/ru...
comment by scoutt · 2021-07-26 · in Rust for Linux redux -
…(non floating point) registers though, so there is nothing stopping them from being implemented. https://github.com/Rust-for-Linux/linux/issues/11#issuecomme...
comment by gpm · 2021-04-17 · in Linus Torvalds on Rust support in kernel -
…is just a temporary thing that they plan to replace before any serious submissions. See also https://github.com/Rust-for-Linux/linux/issues/2#issuecommen...
comment by ssokolow · 2021-04-16 · in An RFC that adds support for Rust to the Linux kernel -
…The first email of the thread is good introduction: https://lkml.org/lkml/2021/4/14/1023 The code: https://github.com/Rust-for-Linux/linux/tree/rust/rust/kerne... Very cool!
comment by flakiness · 2021-04-16 · in Linus Torvalds on Rust support in kernel -
…API features of the kernel allocator that are absent from the userspace allocator, like GFP flags: https://github.com/Rust-for-Linux/linux/issues/2#issuecommen...
comment by ssokolow · 2021-04-16 · in Linus Torvalds on Rust support in kernel -
See https://github.com/Rust-for-Linux/linux/issues/2
comment by imjasonmiller · 2021-04-14 · in An RFC that adds support for Rust to the Linux kernel -
A list is found here[1]. [1]: https://github.com/Rust-for-Linux/linux/issues/2
comment by hmfrh · 2021-04-14 · in An RFC that adds support for Rust to the Linux kernel -
The list of unstable features they want to use is interesting: https://github.com/Rust-for-Linux/linux/issues/2
comment by dochtman · 2021-04-14 · in An RFC that adds support for Rust to the Linux kernel -
The list of unstable features they want to use is interesting: https://github.com/Rust-for-Linux/linux/issues/2
comment by dochtman · 2021-04-14 · in An RFC that adds support for Rust to the Linux kernel -
…binder to Rust and is contributing as he implements it. See his comments here[0] and here[1]. [0] https://github.com/Rust-for-Linux/linux/pull/145 [1] https://github.com/Rust-for-Linux/linux/pull/130
comment by jabedude · 2021-04-01 · in Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust -
…(which is the origin for the linux in rust effort), and in the Documentation/rust[1] folder. [0] https://github.com/Rust-for-Linux/linux [1] https://github.com/Rust-for-Linux/linux/tree/rust/Documentat...
comment by roblabla · 2021-03-18 · in Rust in Linux-Next -
Another step forward to add Rust language support to the Linux kernel: https://github.com/Rust-for-Linux/linux
comment by joseluisq · 2021-03-09 · in Debian Running on Rust Coreutils