Rust Is Coming to CPython: The Python 3.16 Roadmap Explained
CPython is adding Rust code ahead of Python 3.16 — here's the actual PEP timeline, what's changing under the hood, and what it means for Python developers who'll never write a line of Rust.
On this page
I saw the headline “Rust is coming to CPython” and, like a lot of people, my first assumption was wrong — I pictured Python code needing a Rust toolchain to even run. It doesn’t. The actual proposal is narrower, more deliberate, and further out than the headlines suggest. Since this touches the interpreter every Python developer already depends on, I went through the actual PEP discussion and the Python Insider updates to separate what’s really happening from what’s speculation.
What’s Actually Being Proposed
The core idea is not “rewrite Python in Rust” — it’s “let CPython’s C codebase incorporate Rust for specific new components, incrementally, starting from a proof of concept.” CPython — the reference implementation of Python, written in C since 1991 — is enormous and has decades of hardening, so nobody is proposing a wholesale rewrite. The actual proposal targets Python 3.16 as the first release to include any Rust code at all, starting with a single extension module as a proof of concept, not a general-purpose public Rust API for extension authors.
That distinction — internal implementation detail vs. public API — is the single most important thing to understand about this whole effort. Extension authors writing C extensions today won’t need to touch Rust to keep their code working, and pure Python code is entirely unaffected either way.

Why Rust, and Why Now
C has served CPython well for over three decades, but it comes with a well-known cost: manual memory management and a lack of built-in safety guarantees mean an entire class of bugs — buffer overflows, use-after-free, data races — are always one careless line away, even in a codebase as heavily reviewed as CPython’s. These aren’t hypothetical risks for an interpreter this widely deployed; memory-safety bugs in CPython internals have real security implications given how much software runs on top of it.
Rust’s core value proposition — memory safety enforced at compile time via the borrow checker, without a garbage collector — directly targets that risk category. Adopting Rust for new internal components is a bet that new code written in Rust starts out immune to whole categories of memory bugs that would otherwise need to be caught by fuzzing, sanitizers, or code review after the fact.
This mirrors a pattern playing out across the industry more broadly — large C and C++ codebases (parts of the Linux kernel, browser engines, and other critical infrastructure) have been incrementally adopting Rust for new components rather than attempting risky full rewrites. CPython adopting the same incremental strategy is consistent with how that transition has gone elsewhere: narrow, additive, and reversible if it doesn’t pan out.
The Actual Timeline
Worth being precise here, because “Rust in Python” headlines tend to compress a multi-year rollout into something that sounds imminent:
- PEP draft — targeted for mid-2026, following build-system work that’s already progressed enough to pass CI across tested platforms.
- Python 3.16 beta 1 — targeted for May 2027.
- Python 3.16 full release — targeted for October 2027.
That’s over a year out from the PEP even being formally drafted, and the team has explicitly said they expect the PEP discussion itself to be lengthy given how significant a change this is to CPython’s toolchain — this is not a change core developers are rushing.
Build Requirements: You Won’t Need a Rust Compiler
The detail that matters most for the average Python developer, and the one most likely to get lost in headline-skimming: all Rust dependencies will be vendored via Cargo and shipped with the CPython source tree. That means building Python from source, or running Python programs, will not require a Rust compiler to be installed on your system. The Rust code gets compiled ahead of time as part of the release process, the same way CPython already ships pre-built components for other dependencies.
This is a deliberate design constraint, not an oversight — CPython’s entire distribution model depends on being buildable with a minimal, predictable toolchain across every platform it supports (Windows, macOS, Linux, and more niche targets). Requiring every one of those platforms to also have a working Rust toolchain would be a significant new burden on packagers and CI systems, so the plan avoids it entirely by vendoring compiled output instead.

What Changes for Different Kinds of Python Developers
- If you write pure Python code: Nothing changes. Your code runs on the same interpreter, same semantics, same behavior. This entire effort is invisible to you.
- If you write C extensions: Nothing changes immediately. The Rust API is internal-only in the initial 3.16 proof of concept — there’s no public Rust extension API yet for you to migrate to, and no requirement to touch your existing C code.
- If you build or package Python from source: No new Rust toolchain requirement, because dependencies are vendored via Cargo ahead of time — your build process shouldn’t need to change meaningfully for 3.16’s proof-of-concept scope.
- If you’re a CPython core developer or contributor: This is where the real change lives — a new language entering the codebase means new tooling, new review conventions, and a genuinely significant shift in what “contributing to CPython” requires for anyone touching the affected component.
Why This Is a Multi-Year, Not Multi-Month, Change
CPython core developers have been explicit that they expect this discussion to take real time, and that caution is consistent with how CPython has handled other foundational shifts — the C API stability discussions, the GIL removal work (PEP 703), and other deep interpreter changes have all played out over multiple releases rather than landing in one cycle. A few reasons this one in particular moves slowly:
- CPython is depended on by nearly the entire Python ecosystem. A destabilizing change to the interpreter’s build or runtime model has consequences for millions of downstream projects, so the bar for “safe to merge” is deliberately high.
- Introducing a second systems language is a governance question, not just a technical one. Core developers need to agree on tooling, review standards, and long-term maintenance expectations for Rust code living alongside C — that consensus-building is inherently slower than writing the code itself.
- Starting with one proof-of-concept module is explicitly designed to de-risk the decision — prove the build system and workflow work end-to-end on a small, contained piece before expanding scope.
Precedent: Where Rust Already Lives Inside Big C/C++ Codebases
CPython isn’t the first major C-based project to walk this path, and looking at how it went elsewhere is a reasonable way to judge how the Python effort might unfold:
| Project | What Rust replaced or added | Approach |
|---|---|---|
| Linux kernel | New drivers and subsystems (not existing C code) | Additive only — Rust support merged as an option for new code, existing C untouched |
| Firefox (Servo/Stylo) | CSS style engine, media parsing | Incremental component replacement, shipped alongside existing C++ |
| curl | Optional TLS backend (rustls) | Additive, opt-in at build time, C implementation remains default |
The pattern across all three, and the one CPython’s proposal explicitly follows, is the same: Rust arrives as an addition for new or clearly-scoped components, not as a replacement mandate for existing, battle-tested C code. Nobody rewrote curl’s core in Rust; they added a Rust-backed TLS option next to the existing one. CPython’s single proof-of-concept module fits that same conservative pattern.
What Could Go Differently
Being fair to the uncertainty here: PEPs at this stage are proposals, not commitments. The timeline could slip — CPython release timelines have moved before — and it’s possible the scope narrows further, or that the community ultimately decides against expanding beyond the initial proof-of-concept module if the workflow proves too disruptive for contributors. Treat the 3.16 target as the current plan, not a guarantee, and expect the PEP discussion itself to shape (or reshape) the specifics before anything ships.
FAQ
Will I need to install Rust to run Python 3.16? No. Rust dependencies are vendored via Cargo and shipped pre-built with the CPython source tree — building or running Python won’t require a Rust compiler on your system.
Does this mean CPython is being rewritten in Rust? No. The initial scope is one proof-of-concept extension module written in Rust, targeting Python 3.16. This is an incremental, additive change to a still C-based codebase, not a rewrite.
When will Python 3.16 actually be released? Beta 1 is targeted for May 2027, with full release targeted for October 2027. The PEP proposing Rust’s inclusion is itself targeted for mid-2026, so there’s a long runway of discussion before any of this ships.
Will C extension authors need to learn Rust? Not for the foreseeable future. The initial Rust integration is internal to CPython, with no public Rust extension API — existing C extensions continue working unchanged.
Why is CPython considering Rust instead of another memory-safe language? Rust’s specific combination of compile-time memory safety without a garbage collector, mature tooling, and its growing track record in other large C/C++ codebases (browser engines, parts of the Linux kernel) made it the leading candidate discussed in the community proposal, rather than an ecosystem-wide language mandate.
Closing thought
The “Rust is coming to CPython” headline undersells how careful and incremental this actually is — a single proof-of-concept module, a PEP that hasn’t even been drafted yet, and a release target more than a year away, all wrapped in an explicit vendoring strategy so ordinary developers never notice a toolchain change. That caution is the right call for software this widely depended on, and it’s worth understanding the real shape of the plan now, before a future version of this story gets flattened into “Python is switching to Rust” by someone who didn’t read past the headline.