Hacker GitHub

← All repos

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

Mentions per year 42 mentions · busiest year 2022 (18)
20082026
  1. …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]:…
  2. …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
  3. …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
  4. …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
  5. …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
  6. 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
  7. …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
  8. 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".
  9. …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
  10. …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?
  11. …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
  12. …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
  13. 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
  14. …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:…
  15. …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…
  16. 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
  17. …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
  18. …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:…
  19. https://github.com/Rust-for-Linux/linux/blob/rust/rust/kerne...
  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…
  21. …. 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…
  22. 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.
  23. …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
  24. …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
  25. …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...
  26. …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
  27. …(non floating point) registers though, so there is nothing stopping them from being implemented. https://github.com/Rust-for-Linux/linux/issues/11#issuecomme...
  28. …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...
  29. …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
  30. …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
  31. See https://github.com/Rust-for-Linux/linux/issues/2
  32. A list is found here[1]. [1]: https://github.com/Rust-for-Linux/linux/issues/2
  33. The list of unstable features they want to use is interesting: https://github.com/Rust-for-Linux/linux/issues/2
  34. The list of unstable features they want to use is interesting: https://github.com/Rust-for-Linux/linux/issues/2
  35. …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
  36. …(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
  37. 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