Replies: 2 comments
-
That would be pretty cool! We're definitely interested on seeing better integration APIs for embedders, akin to wasm-bindgen. If you have the time to do the work, I'd definitely be open to offering some guidance on it. The crate would preferably be developed incrementally, so that you don't need to open a big PR with all the changes; this makes the review work a lot easier and it would also let us participate in the design process at the start, when it's a lot more important. |
Beta Was this translation helpful? Give feedback.
-
I started #3772 with a first step. I'll wait for a review of it before continuing this effort. Thanks! |
Beta Was this translation helpful? Give feedback.
-
A bit of context; I'm working on a firmware on an embedded system and I want to use Boa to add JavaScript capabilities with the internal functions (think DB, UI, Filesystem, that sort of thing). I have some synthetic modules implemented in my R&D branch, but find the boiler plate for interacting with the script a little too much for my taste.
What I'd like to see is something akin to (in Rust, and not working yet):
Then from JavaScript:
I think this would make creating and registering synthetic modules much much easier.
Unless this effort is already underway or there is strong opposition for this, I volunteer to add the new crate and do the work to build that API.
Let me know if there's interest.
Beta Was this translation helpful? Give feedback.
All reactions