RustPython / RustPython/RustPython

Maturin doesn't work with RustPython because it's treated as an unknown interpreter.

未關閉
#8,342 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Rust
星號
22.4k
分支
1.5k
平均合併
16 小時 33 分鐘
30 天內合併 PR
165

描述

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.

  1. Request RustPython support from PyO3 (the creators of Maturin).
  2. 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.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

該 issue 提到了 Maturin、PyO3 和 RustPython,但沒有指定檔案、測試或進入點。首先確定 Maturin 如何識別直譯器,以及 RustPython 支援應屬於 PyO3 還是獨立的整合;只有在就具體的實作路徑和驗收標準達成共識後,該 issue 才算完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python, rust
領域
compilers, tooling
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。