#![warn(clippy::all, rust_2018_idioms)]
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#[cfg(not(target_arch = "wasm32"))]
fn main() {
tracing_subscriber::fmt::init();
let native_options = eframe::NativeOptions {
..Default::default()
};
let r = eframe::run_native(
"Rustyproxy",
native_options,
Box::new(|cc| Box::new(rustyproxy::TemplateApp::new(cc))),
);
println!("{:?}", r);
}
#[cfg(target_arch = "wasm32")]
fn main() {
console_error_panic_hook::set_once();
tracing_wasm::set_as_global_default();
let web_options = eframe::WebOptions::default();
eframe::start_web(
"the_canvas_id", web_options,
Box::new(|cc| Box::new(rustyproxy::TemplateApp::new(cc))),
)
.expect("failed to start eframe");
}