Replies: 1 comment 2 replies
-
Very interesting use-case! Unfortunately this is definitely not currently possible. I'm happy to review a PR! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on some WebAssembly in WebAssembly type code, where I use web-sys and js-sys to instansiate other WebAssembly modules. For this reason, I would find it really useful if I were able to pass the functions that I have written in Rust to other WebAssembly modules. The following code is a trivial example of what I would like to achieve:
Note that:
wasm_bindgen::exports
gives us access to amemory_saturating_add
but it is the raw WebAssembly export and cannot be used if we need to bind that first argument using aJsValue
.js_name
attribute:Any thoughts on my approaches here? Does this make sense?
Beta Was this translation helpful? Give feedback.
All reactions