- Minimal Template - A small application built with Trunk to get you started.
Minimal Template - Uses
rollupto build your application, and your own server to serve it. No bells or whistles here.
Webpack Template - Uses
wasm-pack-pluginfor Webpack to streamline development.
Unlike other tools,
wasm-pack forces you to use a
lib, not a
and the entry-point to your program is annotated with a
Cargo.toml also should specify that your crate's type is a "cdylib".
name = "yew-app"
version = "0.1.0"
authors = ["Yew App Developer <[email protected]>"]
edition = "2018"
# You should include "rlib" (the default crate type) otherwise your crate can't be used as a Rust library
# which, among other things, breaks unit testing
crate-type = ["rlib", "cdylib"]
yew = "0.17"
wasm-bindgen = "0.2"
- Parcel Template - Created by a community member and uses Parcel