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

Create a project template for writing pure-Rust wasm web apps #57

Open
fitzgen opened this issue Feb 14, 2018 · 2 comments
Open

Create a project template for writing pure-Rust wasm web apps #57

fitzgen opened this issue Feb 14, 2018 · 2 comments
Labels

Comments

@fitzgen
Copy link
Member

fitzgen commented Feb 14, 2018

It should have

  • the state-of-the-art dependencies already in Cargo.toml
  • extern declarations for those crates already in src/lib.rs
  • headless browser testing ready-to-go
  • some script or makefile or cargo-web type thing that does cargo build --release wasm32-unknown-unknown && wasm-gc ... && wasm-opt ... && xdg-open path/to/index.html

Open questions:

  • Where should this template live? A new repository?
  • What dependencies should it come with?
    • wasm-bindgen? Is this applicable for the pure-Rust webapp use case?
    • stdweb?
    • yew?
    • Other things?
@fitzgen fitzgen added help wanted Extra attention is needed use-case:pure-rust-web-app labels Feb 14, 2018
@aidanhs
Copy link
Contributor

aidanhs commented Jan 27, 2019

If the selected backend for this project template offers some kind of synchronising between state in Rust and the dom (e.g. via a render method), it should have an accessible way to do controlled components, as otherwise it becomes easy to get your dom drifting out of sync with your state without noticing.

Note: I did a census of the Rust frameworks I'm aware of in the linked issue and this is an problem in all of them.

(I don't consider libraries which permit manually manipulation of the dom to have this issue, since it's clear that it's up to the user to keep things in sync)

@kellytk
Copy link

kellytk commented Oct 21, 2019

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

No branches or pull requests

3 participants