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

Implement Wasm support #73

Open
SamRodri opened this issue Apr 9, 2024 · 3 comments
Open

Implement Wasm support #73

SamRodri opened this issue Apr 9, 2024 · 3 comments
Labels
A-doc Area: Documentation A-view-process Area: View-process O-web Operating system: Web platform todo TODO task

Comments

@SamRodri
Copy link
Collaborator

SamRodri commented Apr 9, 2024

Winit supports web, so maybe we can extend zng-view to provide a quick implementation of this.

This platform enables interactive examples in docs.

This platform enables some support for all operating systems that provide a web view.

@SamRodri SamRodri added A-doc Area: Documentation todo TODO task O-web Operating system: Web platform labels Apr 9, 2024
@SamRodri
Copy link
Collaborator Author

SamRodri commented Apr 9, 2024

Idea, instead of loading Webrender to render to canvas we could convert the display list to Html elements, this might be more performant. This might also lets us use ARIA for accessibility.

@SamRodri SamRodri added the A-view-process Area: View-process label Apr 15, 2024
@SamRodri SamRodri self-assigned this Jul 18, 2024
@SamRodri SamRodri added this to the 0.10.6 milestone Jul 18, 2024
@SamRodri SamRodri removed this from the 0.11.0 milestone Jul 25, 2024
@SamRodri
Copy link
Collaborator Author

SamRodri commented Jul 25, 2024

Since #391 the "wasm-unknown-unknown" target now compiles without error. Unfortunately many dependencies compile but panic during runtime so WASM support will be released gradually.

Next task is running all app extensions (APP.defaults()) in headless without renderer.

Next major task is implementing a basic zng-view-web.

@SamRodri SamRodri changed the title Implement Web view-process Implement Wasm support Jul 26, 2024
@SamRodri SamRodri added this to the 0.11.1 milestone Jul 26, 2024
@SamRodri
Copy link
Collaborator Author

Wasm is to limited to support at this time, many dependencies build but panic, including Rust's std. My Initial expectation was that only some adaptations would be required to implement the zng-view-web backend.

I will work on mobile platforms first and return to wasm only when those are implemented.

@SamRodri SamRodri removed this from the 0.11.1 milestone Jul 27, 2024
@SamRodri SamRodri removed their assignment Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-doc Area: Documentation A-view-process Area: View-process O-web Operating system: Web platform todo TODO task
Projects
None yet
Development

No branches or pull requests

1 participant