mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
use env_logger in all examples (#2934)
This commit is contained in:
@@ -14,5 +14,6 @@ eframe = { path = "../../crates/eframe", features = [
|
||||
] }
|
||||
egui_extras = { path = "../../crates/egui_extras", features = ["image"] }
|
||||
ehttp = "0.2"
|
||||
env_logger = "0.10"
|
||||
image = { version = "0.24", default-features = false, features = ["jpeg"] }
|
||||
poll-promise = "0.2"
|
||||
|
||||
@@ -5,6 +5,7 @@ use egui_extras::RetainedImage;
|
||||
use poll_promise::Promise;
|
||||
|
||||
fn main() -> Result<(), eframe::Error> {
|
||||
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
|
||||
let options = eframe::NativeOptions::default();
|
||||
eframe::run_native(
|
||||
"Download and show an image with eframe/egui",
|
||||
|
||||
Reference in New Issue
Block a user