mirror of
https://github.com/speice-io/isomorphic-rust
synced 2025-07-03 06:44:53 -04:00
Attempt adding binaryen - doesn't actually run though
This commit is contained in:
16
binaryen/src/lib.rs
Normal file
16
binaryen/src/lib.rs
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user