rust-playground
rust-playground copied to clipboard
Support wasm-pack frontend
This PR aims to solve #374 , which is the frontend service for it.
Change of code
- Add new
Output/PaneWithWasmPackandOutput/Containerfor rendering wasm result - Add
performCompileToWasmPackfunction to request backendwasm-packPOST method - Add new
reducers/output/wasmPackto perform state management
Note
- This PR is built on top of #706
Demo
rust-playground
https://user-images.githubusercontent.com/12388235/114809686-39eb7e80-9ddd-11eb-96fd-a8b9e221e147.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.