#slide #website #built #scroll #page #wasm-module

nightly wasm-slideshow

A WASM module for scrolling through slides on a specific page

1 unstable release

0.1.0 Sep 19, 2019

#788 in WebAssembly


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

~6.5–9MB
~171K SLoC