webplatform-0.0.1 is not a library.
Visit the last successful build: webplatform-0.4.2

rust-webplatform

let body = HtmlNode::query("body").unwrap();
body.html_set("<h1>HELLO FROM RUST</h1> <button>CLICK ME</button>");
let mut button = HtmlNode::query("button").unwrap();
button.on("click", || alert("WITNESS ME"));

Soon!

Shamelessly stolen from tomaka and then AerialX.

Building

See cargo-build for instructions on how to get the environment set up.

cargo-build --sysroot some/rust/sysroot --target i386-unknown-emscripten --emit em-html