# Linux 7.4 merges 17,000 lines of new Rust kernel code with major crate updates

> **Key takeaway:** Miguel Ojeda's Rust-for-Linux pull request for 7.4 includes a major Zerocopy crate update jumping eight versions, new kernel modules, and improved diagnostics.

**Published:** 2026-10-20T10:04:57+00:00 
**Source:** Phoronix Benchmarks &amp; Drivers 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/linux-74-merges-17000-lines-of-new-rust-kernel-code-with-maj.html 

## Summary
The Linux 7.4 kernel cycle is receiving a substantial Rust code infusion through Miguel Ojeda's pull request. The approximately 17,000 lines of new code center on updating vendored crates, particularly the Zerocopy library which advances eight versions. Additional changes include new "mem" and "ratelimit" kernel modules, pin-init crate improvements for tuple structs and safe self-references, and better diagnostic capabilities through enabled proc_macro_span support.

## What's in the Rust 7.4 pull request
- **Zerocopy crate**: Updated eight versions forward; provides traits and macros for safe conversion between raw byte sequences and structured types
- **New kernel modules**: "mem" and "ratelimit" modules added to the Rust kernel crate
- **pin-init improvements**: Now supports tuple structs and safe creation of self-references
- **Toolchain**: Unstable `proc_macro_span` feature enabled for better diagnostics across all procedural macros
- **Additional Rust code**: Expected via subsystem pull requests, including NVIDIA Nova driver and Rust DRM infrastructure work

## Why it matters
The continued expansion of Rust in the Linux kernel strengthens memory safety guarantees for future drivers and subsystems. The Zerocopy update and improved diagnostics reduce barriers for kernel developers adopting Rust.