![]() |
VOOZH | about |
We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.
Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.
Follow TNS on your favorite social media networks.
Become a TNS follower on LinkedIn.
Check out the latest featured and trending stories while you wait for your first TNS newsletter.
Python developers have always faced a trade-off: write elegant, readable code or go for high performance. For a long time, this meant reaching for C extensions when speed mattered. But Rust has emerged as Python’s performance co-pilot.
According to the JetBrains State of Python 2025 report, Rust usage for Python binary extensions jumped from 27% to 33% — a 22% increase in just one year. This represents a key shift in how the Python ecosystem approaches performance optimization.
In a blog post about the study — which was based on a survey of 30,000 developers — Michael Kennedy, the founder of Talk Python and a Python Software Foundation Fellow, wrote that “At the 2025 Python Language Summit, core developers shared an eye-opening statistic: ‘Somewhere between one-quarter and one-third of all native code being uploaded to PyPI for new projects uses Rust.’ This means that when developers start new performance-critical Python projects today, they’re increasingly choosing Rust over traditional C extensions.”
Among the key reasons for Rust’s rapid adoption in the Python ecosystem is performance. Rust delivers C-level performance while maintaining Python’s ease of integration. Rust’s zero-cost abstractions and efficient memory management make it ideal for performance-critical components.
Rust also provides memory safety. Unlike C, Rust prevents common programming errors like buffer overflows and memory leaks at compile time. This makes it dramatically safer for extending Python without introducing security vulnerabilities or crashes.
In addition, Rust offers a high-quality developer experience with its modern toolchain, excellent error messages, and package manager (Cargo). It provides a better development experience compared to the often painful process of writing and debugging C extensions.
The Python ecosystem already showcases several high-profile Rust success stories:
Rust’s influence extends beyond individual packages to Python’s core infrastructure. Traditional Web Server Gateway Interface (WSGI) servers are giving way to Asynchronous Server Gateway Interface (ASGI) compatible alternatives, many of which are built with Rust. Kennedy cited Granian, a new Rust-based application server, as gaining significant traction. He also singled out Uvicorn, which, while Python-based, increasingly integrates with Rust components
Kennedy also noted that two new Python type checkers have emerged, both written in Rust. One is ty from Astral, which is described as “an extremely fast Python type checker and language server.” The other is Pyrefly from Meta, which is a high-performance alternative to traditional type checkers like mypy.
“They are both vying to be the next generation tooling for type checking. Moreover, both of these tools provide extremely fast language server protocols (LSPs), Kennedy wrote.
“Notice anything similar? They are both written in Rust, backing up the previous claim that ‘Rust has become Python’s performance co-pilot,’” he added.
Meanwhile, for enterprises, Rust-enhanced Python delivers tangible benefits. The performance improvements alone can translate into cost savings, including reduced cloud compute costs and lower memory usage. Moreover, faster response times improve customer satisfaction and more efficient code reduces energy consumption, Kennedy said.
Kennedy advised Python developers to learn to read Rust.
Python developers should consider learning the basics of Rust, not to replace Python, but to complement it.
“As I discussed in our analysis, Rust is becoming increasingly important in the most significant portions of the Python ecosystem,” Kennedy wrote. “I definitely don’t recommend that you become a Rust developer instead of a Pythonista, but being able to read basic Rust so that you understand what the libraries you’re consuming are doing will be a good skill to have.”
Kennedy also advised Python developers to embrace Rust-enhanced libraries. When choosing between similar packages, consider those with Rust cores — they often provide superior performance without sacrificing Python’s ease of use, he said.
And Python devs also should consider Rust for extensions, Kennedy advises. Python developers building performance-critical Python extensions should evaluate Rust as their implementation language instead of defaulting to C, he indicated.
Overall, Rust is not replacing Python — it’s supercharging it. This hybrid approach gives developers the best of both worlds: Python’s expressiveness and ecosystem for application logic, with Rust’s performance for computationally intensive components, the report expresses.