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

Support wasm-pack frontend #707

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

titaneric
Copy link

This PR aims to solve #374 , which is the frontend service for it.

Change of code

  • Add new Output/PaneWithWasmPack and Output/Container for rendering wasm result
  • Add performCompileToWasmPack function to request backend wasm-pack POST method
  • Add new reducers/output/wasmPack to perform state management

Note

Demo

rust-playground

2021-04-15.11-20-07.mp4

P.S.

I am newbie of React, every code in this PR is enough to perform the result but may not consider the convention of React or any performance issue. I DO think this implementation is more like prototype than production, feel free to point out any issues involved with code base and rewrite suitably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant