Skip to content
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

Add WebAssembly support #357

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Add WebAssembly support #357

merged 1 commit into from
Aug 1, 2024

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Aug 1, 2024

Add support for the WebAssembly target (wasm). This requires disabling the serde feature, as the typetag used to serialize trait objects is not available for that target.

Add a web page with all the examples, and move all the GIFs there. Remove the list of examples from the README; instead point users to the web demo at examples/wasm/index.html. This should be eventually published live for even easier reference.

Temporarily copy assets/ to examples/wasm/ so that web examples can directly access them when serving locally. This avoids complicated multi-folder setups.

Fixes #41

Add support for the WebAssembly target (`wasm`). This requires
disabling the `serde` feature, as the `typetag` used to serialize trait
objects is not available for that target.

Add a web page with all the examples, and move all the GIFs there.
Remove the list of examples from the README; instead point users to the
web demo at `examples/wasm/index.html`. This should be eventually
published live for even easier reference.

Temporarily copy `assets/` to `examples/wasm/` so that web examples can
directly access them when serving locally. This avoids complicated
multi-folder setups.

Fixes #41
@djeedai djeedai added C - enhancement New feature or request C - breaking change A breaking API or behavior change labels Aug 1, 2024
@djeedai djeedai merged commit d7d2d9c into main Aug 1, 2024
17 checks passed
@djeedai djeedai deleted the u/wasm12 branch August 1, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - breaking change A breaking API or behavior change C - enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WASM compatibility
1 participant