mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
use env_logger in all examples (#2934)
This commit is contained in:
@@ -12,3 +12,4 @@ publish = false
|
||||
eframe = { path = "../../crates/eframe", features = [
|
||||
"__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO
|
||||
] }
|
||||
env_logger = "0.10"
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
use eframe::egui;
|
||||
|
||||
fn main() -> Result<(), eframe::Error> {
|
||||
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
|
||||
|
||||
if cfg!(target_os = "macos") {
|
||||
eprintln!("WARNING: this example does not work on Mac! See https://github.com/emilk/egui/issues/1918");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user