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

Basic web frontend #22

Merged
merged 8 commits into from
Jun 17, 2021
Merged

Basic web frontend #22

merged 8 commits into from
Jun 17, 2021

Conversation

MikkelPaulson
Copy link
Collaborator

Cross-compiles the application to WebAssembly, providing a web frontend. Neat, huh?

Resolves #19.

New initiative-web crate will serve as the root crate for the WASM
build.
Removed a bunch of unnecessary references to rand::Rng, or worse,
super::Rng.
Update crate names to use kebab-case instead of snake_case.
initiative-web now depends on (and invokes!) initiative-core. Turns out
all it required was a bit of massaging of dependencies.

Currently it does nothing but show a prescripted popup, but soon!
The prompt will now take input from the user. Output is still shown in
alert for now.
@MikkelPaulson MikkelPaulson added this to In progress in Web frontend via automation Jun 17, 2021
Output will now be written to the page rather than display in an alert.
Code size isn't presently a big priority, so removed the wee_alloc
feature and its associated dependency.
@MikkelPaulson MikkelPaulson mentioned this pull request Jun 17, 2021
2 tasks
@MikkelPaulson MikkelPaulson merged commit 9e7945f into main Jun 17, 2021
@MikkelPaulson MikkelPaulson deleted the wasm-pack-frontend branch June 17, 2021 18:57
Web frontend automation moved this from In progress to Done Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Cross-compile to WASM
1 participant