diff --git a/examples/console_log/Cargo.toml b/examples/console_log/Cargo.toml index aa558dc89..25761c2d1 100644 --- a/examples/console_log/Cargo.toml +++ b/examples/console_log/Cargo.toml @@ -8,4 +8,3 @@ crate-type = ["cdylib"] [dependencies] wasm-bindgen = { path = "../.." } -web-sys = { path = "../../crates/web-sys" } \ No newline at end of file diff --git a/examples/console_log/src/lib.rs b/examples/console_log/src/lib.rs index 7ae64334e..b32bd7a27 100644 --- a/examples/console_log/src/lib.rs +++ b/examples/console_log/src/lib.rs @@ -1,11 +1,7 @@ extern crate wasm_bindgen; -extern crate web_sys; use wasm_bindgen::prelude::*; -// You can use the console bindings from web-sys... -use web_sys::console; - // ... or you can manually write the bindings yourself #[wasm_bindgen] extern "C" { @@ -22,7 +18,4 @@ pub fn run() { log("Hello from Rust!"); log_u32(42); log_many("Logging", "many values!"); - - console::log(JsValue::from("Another message from rust!")); - console::log(JsValue::from(56u32)); }