Skip to content

Export Rust shims and bindings #3499

Closed Answered by daxpedda
ten3roberts asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a method to get the same functionality but generate the bindings for rust functions?

wasm-bindgen doesn't offer this functionality, no.

Additionally, the downloaded client wasm makes use of wasm-bindgen internally and links to web-sys et alii.

If this Wasm file is using wasm-bindgen, it won't work properly if you don't run it through wasm-bindgen and don't have it's JS shim anyway. How do you intend to solve that in the first place?


I'm assuming you want to use Wasm files provided by a client and use them in your Wasm application that is running in a browser.
Unfortunately there isn't an easy way to do this right now, but what you need is an FFI interface that both you and t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ten3roberts
Comment options

Answer selected by daxpedda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3497 on June 26, 2023 21:36.