RetroFed Forums
Your home away from modern life.
17k Lines Of New Rust Kernel Code Heading Into Linux 7.4
Post Reply
AuthorMessage
cm0002
lemdro.id
cm0002@lemdro.id
Joined: 2025-06-07
Posted:   Subject: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote

Miguel Ojeda sent out his pull request of the new Rust kernel code slated for introduction in Linux 7.4. It's a big one this round due to updating the Zerocopy vendored library plus updating other Rust crates for the kernel.

The Zerocopy crate update is a big one in jumping eight versions ahead. This is the code providing traits and macros to safely convert between raw byte sequences and structured types. Rust for Linux 7.4 also has other toolchain and infrastructure updates, enabling the unstable proc_macro_span feature for better diagnostics of all procedural macros, and more.

The Rust kernel create adds new "mem" and "ratelimit" modules while improving some of the existing modules. The pin-init crate is adding support for tuple structs as well as allowing for the safe creation of self-references. There is also much improved diagnostics.

More details on these central Rust code changes for Linux 7.4 can be found via this pull request. Via individual subsystem pull requests will also be more Rust code for Linux 7.4, like the NVIDIA Nova driver improvements for Linux 7.4 and the other Rust DRM infrastructure work that brings.

38   Original
nightwatch_admin
lemmy.world
nightwatch_admin@lemmy.world
Joined: 2026-03-17
#2 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

How much of this will be slop?

-3
TimeRonin
lemmy.world
TimeRonin@lemmy.world
Joined: 2026-06-13
#3 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

How much of this will be slop?

Everything you understand about it is currently slop, that's not ai's fault, it's yours

-8
refalo
programming.dev
refalo@programming.dev
Joined: 2024-04-13
#4 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

If someone makes a Rust-free fork, please name it Stainless.

17
ikidd
lemmy.dbzer0.com
ikidd@lemmy.dbzer0.com
Joined: 2026-04-23
#5 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

How much of this will be slop?
[deleted]
1
groche
lemmy.rochegmr.com
groche@lemmy.rochegmr.com
Joined: 2024-05-04
#6 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

If someone makes a Rust-free fork, please name it Stainless.

Is very easy to build the kernel without rust, and is the default scenario

-1
refalo
programming.dev
refalo@programming.dev
Joined: 2024-04-13
#7 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

Is very easy to build the kernel without rust, and is the default scenario

it is not the default

3
danielfm123
lemmy.zip
danielfm123@lemmy.zip
Joined: 2026-07-12
#8 Posted:   Subject: Re: 17k Lines Of New Rust Kernel Code Heading Into Linux 7.4 Quote Reply

Rust is slower... Shouldn't be used in the kernel...

-3
Post Reply Page 1