fix when running natively
This commit is contained in:
parent
133998ff63
commit
8587dbf78c
@ -43,6 +43,7 @@ command-run = "1.1.1"
|
|||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||||
instant = { version = "0.1.12" }
|
instant = { version = "0.1.12" }
|
||||||
|
tracing-subscriber = "0.3.9"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
instant = { version = "0.1.12", features = ["wasm-bindgen"] }
|
instant = { version = "0.1.12", features = ["wasm-bindgen"] }
|
||||||
|
|||||||
@ -9,6 +9,12 @@ mod parsing;
|
|||||||
// For running the program natively! (Because why not?)
|
// For running the program natively! (Because why not?)
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
fn main() {
|
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 {
|
let options = eframe::NativeOptions {
|
||||||
transparent: true,
|
transparent: true,
|
||||||
drag_and_drop_support: true,
|
drag_and_drop_support: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user