Rust library for Emscripten-compiled JS apps.
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.cargo Adds default target. Oct 13, 2016
src Adds default target. Oct 13, 2016
static Push to cargo. Sep 17, 2015
.gitignore Initial HTML library commit! Sep 12, 2015
Cargo.lock Adds default target. Oct 13, 2016
Cargo.toml Update Cargo metadata license to reflect README. Jun 20, 2017 Redirect prospective users to stdweb (#27) Oct 18, 2017


A Rust library for use with emscripten to access the DOM.

NOTE: This project is no longer actively developed. See stdweb for an actively-developed project for using Rust in asmjs / wasm.

Read the documentation, read brson's post on how Rust works with emscripten, or see an example app with rust-todomvc.

extern crate webplatform;

fn main() {
    let document = webplatform::init();
    let body = document.element_query("body").unwrap();
    body.html_set("<h1>HELLO FROM RUST</h1> <button>CLICK ME</button>");
    let button = document.element_query("button").unwrap();
    button.on("click", |_| webplatform::alert("WITNESS ME"));

Used with cargo build --target=asmjs-unknown-emscripten.


MIT or Apache-2.0, at your option.