Attempt adding binaryen - doesn't actually run though

This commit is contained in:
2018-09-09 00:06:48 -04:00
parent e7edfc1e8c
commit d6c662ac80
11 changed files with 7987 additions and 0 deletions

16
binaryen/src/lib.rs Normal file
View File

@ -0,0 +1,16 @@
extern crate stdweb;
use stdweb::web::document;
use stdweb::web::INode;
use stdweb::web::IElement;
pub fn run() {
stdweb::initialize();
let doc = document();
let val = doc.create_element("p").unwrap();
val.set_attribute("innerHTML", "IT IS ALIVE").unwrap();
doc.body().unwrap().append_child(&val);
stdweb::event_loop();
}