We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49023f2 commit 39485f9Copy full SHA for 39485f9
src/main.rs
@@ -4,13 +4,12 @@
4
#[global_allocator]
5
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
6
7
-// When compiling natively:
8
#[cfg(not(target_arch = "wasm32"))]
9
fn main() -> eframe::Result {
10
use std::sync::Arc;
11
12
#[cfg(feature = "logs")]
13
- env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
+ env_logger::init_from_env(env_logger::Env::new().default_filter_or("debug"));
14
15
let native_options = eframe::NativeOptions {
16
viewport: egui::ViewportBuilder::default()
@@ -77,7 +76,6 @@ fn main() -> eframe::Result {
77
76
)
78
}
79
80
-// When compiling to web using trunk:
81
#[cfg(target_arch = "wasm32")]
82
fn main() {
83
use eframe::wasm_bindgen::JsCast as _;
0 commit comments