RustPython / RustPython/RustPython
Looking for a Proxy implementation similar to quickjs_runtime
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Rust
- 星號
- 22.4k
- 分支
- 1.5k
- 平均合併
- 16 小時 33 分鐘
- 30 天內合併 PR
- 165
描述
Summary
I have implemented a JS proxy using quickjs_runtime where i have my own custom classes and methods implemented in rust and can be callable from javascript methods.
https://github.com/HiRoFa/quickjs_es_runtime
Ex: I have
Javscript code
class PdfDocument {
}
this.doc = new io.pdf.PdfDocument(__id__, docProps);
io.pdf.PdfDocument is a proxy and implemenation in rust using JsProxy of quickjs_runtime.
Rust code
let proxy = JsProxy::new()
.namespace(&["io", "pdf"])
.name("PdfDocument")
Is there any similar way to implement python as well?
Ex: Implementaion should be completely in rust where as calling is from Python.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 沒有指明 RustPython 的檔案、測試或進入點。首先定位 RustPython 現有的、用於向 Python 公開以 Rust 實作的類別的機制,然後將它們與 issue 中所示的要求代理行為進行比較。完成條件是提供有文件記錄的可行性答覆,或確定雙方同意的實作範圍。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python, rust
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100