ELSEIF
Your brief EB
326 stories from 189 feeds 1211 clusters Refreshed 7 minutes ago next pull 16:26

LANGUAGES Signal 395

CPython drops mandatory Rust dependency, will offer optional Rust API in Python 3.16

CPython maintainers reversed course on making Rust a required build dependency, opting instead for an optional Rust API planned for Python 3.16.

WHY IT MATTERS

This avoids the community backlash that accompanied mandatory Rust adoption in the Linux kernel, while still allowing gradual Rust integration. Engineers maintaining CPython builds on platforms without Rust toolchain support will not be blocked, and internal developers can opt into Rust for extension modules when it suits them.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

An optional Rust API is planned for Python 3.16 (due October 2027), shipping with the Rust zlib compression library as a test crate.

02

The original proposal to make Rust mandatory was dropped due to cyclic build dependencies, platform support gaps, and community resistance.

03

Significant technical challenges remain, including GCC support in Rust, cross-language memory sanitization, and augmenting Rust's Drop trait for Python object deallocation.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
www.theregister.com - Articles CPython eases Rust requirements as assimilation continues Open ↗