How do i use complex types with the WebAssembly build? #899
Unanswered
akowi-sknobloch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello i hope someone here can help me understand how i can pass more complex types when building for WASM.
Every example i could find uses
wasm-bindgen
andwasm-pack
.But
wasm-pack
cannot compile towasm32-unknown-emscripten
so the build when usingrust-skia
fails.I've tried to build upon the
wasm-example
from this project.The Example works but as soon as i try complex types like
String
i run into issues regardingffi
support.For my Project i have to send strings as well as images between JavaScript and Rust.
I don't understand how/if this is possible when building for
wasm32-unknown-emscripten
.I've build a render-engine for our internal image generation needs to replace our current approach of using automation scripts with Adobe Photoshop & Illustrator.
I would really like to implement an web-based editor for the scene structure the engine uses.
If anyone would have some examples that achieve this I would be very thankful.
Beta Was this translation helpful? Give feedback.
All reactions