Minimal Template - Uses
rollup to build your application, and your own server to serve it. No bells or whistles here.
The important distinction between these templates and using
cargo-web is that this approach uses a
lib, not a
bin crate, and the entry-point to your program is annotated with a
Cargo.toml also should specify that you have a "cdylib" crate-type.
Cargo.toml[package]name = "yew-app"version = "0.1.0"authors = ["Yew App Developer <[email protected]>"]edition = "2018"[lib]crate-type = ["cdylib"][dependencies]yew = "0.11.0"wasm-bindgen = "0.2"