Skip to content

Commit

Permalink
[honk][vscode] add lib.rs (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
anp committed Sep 7, 2020
1 parent 54babe9 commit ae4e602
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions honk/editors/vscode/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use tracing::*;
use wasm_bindgen::prelude::*;

#[wasm_bindgen(start)]
pub fn setup_tracing() {
tracing_wasm::set_as_global_default();
console_error_panic_hook::set_once();
info!("tracing initialized");
}

0 comments on commit ae4e602

Please sign in to comment.