At the Python Language Summit 2026, David Hewitt presented an incremental roadmap on behalf of the Rust for CPython project team to introduce Rust into CPython's codebase. The initiative aims to address a growing number of crash reports tied to memory safety, particularly as complex features like free-threading, the JIT compiler, and new parser architecture enter the runtime. A Python Enhancement Proposal (PEP) defining formal success criteria is expected in late 2026.
Staged Rollout Starting with zlib
The proposed plan begins in Summer 2026 with build system and Rust API proof-of-concept work. Under the proposed schedule, Python 3.16 in October 2027 would introduce an optional Rust backend for the zlib compression module using the external zlib-rs crate, alongside a private Rust API, while retaining original C implementations as fallbacks. Because zlib is extensively utilized during package installation, project maintainers anticipate that this initial adoption could speed up pip installations.
If accepted, Python 3.17 in October 2028 would expand optional Rust implementations to additional core modules, including io, json, xml, memoryview, and the parser, while resolving platform-specific build issues. The roadmap targets October 2029 with Python 3.18 as the earliest release where Rust could become a mandatory dependency for building CPython and export a public Rust API.
Developer Adoption and Platform Support
To qualify for mandatory integration, the project team proposed key success criteria: support for all platform tiers officially targeted by CPython, no performance regressions on standard benchmarks, and broad openness among active core developers to maintain Rust-based modules. Hewitt emphasized that CPython would remain a dual-language project for years, avoiding complete ports of existing C code in favor of targeted replacements.
Dependency and Governance Challenges
Core developers raised concerns regarding ecosystem integration and maintenance overhead. Pablo Galindo Salgado highlighted potential risks surrounding external Cargo dependencies and security update management. In response, Hewitt clarified that the build system would vendor required Rust dependencies so that building CPython does not require fetching packages via Cargo at compile time.
AI-generated editorial illustration; not a documentary photograph.
Source: Rust for CPython (Python Language Summit 2026)

Leave a Reply