Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i use complex types with the WebAssembly build? #895

Closed
akowi-sknobloch opened this issue Dec 12, 2023 · 0 comments
Closed

How do i use complex types with the WebAssembly build? #895

akowi-sknobloch opened this issue Dec 12, 2023 · 0 comments

Comments

@akowi-sknobloch
Copy link

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 and wasm-pack.
But wasm-pack cannot compile to wasm32-unknown-emscripten so the build when using rust-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 regarding ffi 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.

@rust-skia rust-skia locked and limited conversation to collaborators Dec 12, 2023
@pragmatrix pragmatrix converted this issue into discussion #899 Dec 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant