-
Notifications
You must be signed in to change notification settings - Fork 244
Support wasm-pack backend #706
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
base: main
Are you sure you want to change the base?
Conversation
|
Any news about this PR? |
|
@shepmaster sorry for the ping but any chance this could be merged? |
|
@lukechu10 and anyone interested in this feature could try my own hosting Note that due to the limited budgets, I host it with the minimal resource (1 CPU and 1 G RAM). Hope that someone could try it and give me some feedback. I will contine try to merge to original one. |
|
Hey, are there any updates on this from this repo owners? Is there any help needed for getting this forward, or this is supposed to be will-not-merge kind of thing? |
|
@YJDoc2, thank you for your interest. Obviously, the upstream is highly refactored after I submitted this PR. |
|
@shepmaster sorry for pinging, but would this project be interested in merging this/equivalent PR? This would be a pretty interesting feature to have in the playground. |
|
Hey @dtolnay @RalfJung sorry for the ping, but pinging you as you seem to also be one of the recent active contributors. It seems that @shepmaster might have missed the ping, or they might be busy with something else. Is there any chance of this getting merged after appropriate changes? Thank you! |
This PR aims to solve #374 , which is the backend service for it.
Change of code
wasm-packPOST method which request Rustcodeand response withwasm_js,wasm_bgetc.wasm-packcargo-packwhich leverage wasm-pack to build the wasm codeDockerfilefor new channelrust-wasm-packCargo.tomland dummysrc/lib.rsfor environment settingNote
compiler/wasm-pack/Cargo.tomlnottop-crates/crate-modifications.toml, I am not sure which way is better.Demo
rust-playground
2021-04-15.11-20-07.mp4
mdBook
2021-04-15.11-29-30.mp4