Skip to content

Stabilize tooling needed by Rust for Linux #116

Open
@nikomatsakis

Description

@nikomatsakis
Metadata
Point of contact @nikomatsakis
Team(s) cargo, clippy, compiler, rustdoc
Goal document 2025h1/rfl

Summary

Continue working towards Rust for Linux on stable, turning focus to compiler and tooling.

Why this goal?

This goal continues our work from 2024H2 in supporting the experimental support for Rust development in the Linux kernel. Whereas in 2024H2 we were focused on stabilizing required language features, our focus in 2025H1 is stabilizing compiler flags and tooling options. We will (1) implement RFC #3716 which lays out a design for ABI-modifying flags; (2) take the first step towards stabilizing build-std by creating a stable way to rebuild core with specific compiler options; (3) extending rustdoc, clippy, and the compiler with features that extract metadata for integration into other build systems (in this case, the kernel's build system).

Tasks and status

Finalizing 2024h2 goals

  • Stabilize derive(CoercePointee) (blocked on #136764 / #136776)
  • Stabilize arbitrary self types v2 (blocked on #136764 / #136776)
  • stabilize asm-goto (blocked on reference PR)
  • support for pointers with asm_const Support for pointers with asm_const rust#128464

ABI-modifying compiler flags

Configure no-std externally

Rustdoc features to extract doc tests

  • Author RFC ()
  • RFC decision (rustdoc Team)
  • Implementation ()
  • Standard reviews (rustdoc Team)
  • Experimentation in RFL (@ojeda)
  • Stabilization decision (rustdoc Team)

Clippy configuration

-Zsanitize-kcfi-arity

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Project goal

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions