You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Maturin doesn't work with RustPython because it's treated as an unknown interpreter. #8342
Maturin doesn't work with RustPython because it's treated as an unknown interpreter.
Because Maturin serves as a bridge between Python and Rust, it ends up being more essential than it seems.
This issue is more of a discussion than a bug or feature request, as it takes advantage of the fact that issues receive more attention than discussions.
But there's two ways to make this work.
Request RustPython support from PyO3 (the creators of Maturin).
Create a fork of Maturin specifically for RustPython.
Pros and cons of each:
First method
Pros:
Better integration with the Maturin environment and the PyO3 ecosystem.
No need to patch Maturin to work with RustPython.
Cons:
This would be unlikely to be approved due to the complexity of maintenance.
Second method
Pros:
Integration without relying on the PyO3 committee.
Exclusive improvements for better performance in RustPython.
Cons:
Makes the project harder to maintain.
Implementation may be difficult, especially for a small team.
RustPython does not have fully support for the c-api (yet!). That's why maturin support is not yet sensical. PyO3 has internal support but this will be removed in the future once RustPython is more api compatible with CPython abi3t.
Activity
bschoenmaeckers commentedon Jul 22, 2026
RustPython does not have fully support for the c-api (yet!). That's why maturin support is not yet sensical. PyO3 has internal support but this will be removed in the future once RustPython is more api compatible with CPython abi3t.
(I'm also a PyO3 maintainer)