Skip to content

Looking for a Proxy implementation similar to quickjs_runtime #5835

Open
@BharathIO

Description

@BharathIO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions