fix when running natively

This commit is contained in:
Simon Gardling 2022-03-22 11:46:02 -04:00
parent 133998ff63
commit 8587dbf78c
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,7 @@ command-run = "1.1.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
instant = { version = "0.1.12" }
tracing-subscriber = "0.3.9"
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] }

View File

@ -9,6 +9,12 @@ mod parsing;
// For running the program natively! (Because why not?)
#[cfg(not(target_arch = "wasm32"))]
fn main() {
let subscriber = tracing_subscriber::FmtSubscriber::builder()
.with_max_level(tracing::Level::TRACE)
.finish();
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
let options = eframe::NativeOptions {
transparent: true,
drag_and_drop_support: true,