Slides engine in rust
Create an empty WASM project:
cargo new --bin example
Add slides dependency to Cargo.toml:
slides = "<latest version from crates.io>"
Add index.html and index.css to ./static directory.
Run engine from main.rs:
use slides::run;
use slides::Story;
use slides::Slide;
fn main() {
run(
Story {
slides: vec!(
Slide::text("Hello World"),
)
}
);
}
Start project with
cargo web start --auto-reload