6 releases
0.1.5 | Jan 1, 2019 |
---|---|
0.1.4 | Dec 29, 2018 |
#20 in #slide
13KB
290 lines
slides.rs
Slides engine in rust
Getting started
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
Example talks
Dependencies
~3–4MB
~85K SLoC