Why not go full WASM? #381
Replies: 2 comments 1 reply
-
Side note: your |
Beta Was this translation helpful? Give feedback.
-
@mkazlauskas Thanks - I didn't realize I hit a couple of build issues using the Emurgo crate (ie it's really made for Typescript bindings rather than Rust WASM frameworks ), so I ended up using my own fork (ie erichulburd/cardano-serialization-lib). Thanks for the response. |
Beta Was this translation helpful? Give feedback.
-
I see this library is built on top of Rust generated from CDDL: https://github.com/Emurgo/cardano-serialization-lib.
There are a number of Rust web frameworks entering the game: Yew is a popular one, Dioxus is one I'm using in a current project.
I am currently trying to look for particular assets in a user's connected wallet. The Typescript may look something like this:
When I want to call this from a Rust framework, this data is serialized to/ from WASM, to ultimately get passed to WASM again IIUC.
Why not provide the CSL functions directly in Rust and then support Typescript calls on top of that? In addition to potential performance gains, it would save Rust WASM framework developers from having to deal with painful webpack configuration to get
@cardano-sdk/core
to compile.Beta Was this translation helpful? Give feedback.
All reactions