Removing weird artifact from generating the project
This commit is contained in:
parent
b3f32c1b33
commit
e6f20ca8ed
1 changed files with 0 additions and 19 deletions
19
src/lib.rs
19
src/lib.rs
|
|
@ -1,19 +0,0 @@
|
||||||
#![allow(special_module_name)]
|
|
||||||
mod main;
|
|
||||||
|
|
||||||
// Entry point for wasm
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
use wasm_bindgen::prelude::*;
|
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
#[wasm_bindgen(start)]
|
|
||||||
pub fn start() -> Result<(), JsValue> {
|
|
||||||
console_log::init_with_level(log::Level::Debug).unwrap();
|
|
||||||
|
|
||||||
use log::info;
|
|
||||||
info!("Logging works!");
|
|
||||||
|
|
||||||
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
|
|
||||||
main::main();
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue