From 184d2fe5724b32689c6eeeaec3b049fc2a0c2b84 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 3 Jul 2020 15:15:04 +0100 Subject: [PATCH] remove example --- src/lib.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fdb7c19..b9a26ff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,24 +1,6 @@ use wasm_bindgen::prelude::*; use bitsy_parser::game::Game; -// Called when the wasm module is instantiated -#[wasm_bindgen(start)] -pub fn main() -> Result<(), JsValue> { - // Use `web_sys`'s global `window` function to get a handle on the global - // window object. - let window = web_sys::window().expect("no global `window` exists"); - let document = window.document().expect("should have a document on window"); - let body = document.body().expect("document should have a body"); - - // Manufacture the element we're gonna append - let val = document.create_element("p")?; - val.set_inner_html("Hello from Rust!"); - - body.append_child(&val)?; - - Ok(()) -} - #[wasm_bindgen] pub fn merge(a: String, b: String) -> String { let main = Game::from(a);