#slide #website #built #scroll #page #module

nightly wasm-slideshow

A WASM module for scrolling through slides on a specific page

1 unstable release

0.1.0 Sep 19, 2019

#21 in #slide


Used in benxu

MIT license

17KB
286 lines

benxu.dev

My website, built with Rust


lib.rs:

The wasm functions for managing my slides. This crate should only function in a browser. Static globals are used to ensure that closures are kept in memory, while not simply forgetting them due to need for reuse at times.

An associated script, compile.sh will call wasm-pack with the arguments used for building the server's static resources.

Dependencies

~7–10MB
~181K SLoC