32 lines
946 B
Rust
32 lines
946 B
Rust
use tracing::*;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> eframe::Result {
|
|
let subscriber = tracing_subscriber::fmt()
|
|
.compact()
|
|
.with_file(true)
|
|
.with_line_number(true)
|
|
.with_thread_ids(true)
|
|
.with_target(false)
|
|
.finish();
|
|
|
|
subscriber::set_global_default(subscriber).unwrap();
|
|
|
|
let native_options = eframe::NativeOptions {
|
|
viewport: egui::ViewportBuilder::default()
|
|
.with_inner_size([720.0, 500.0])
|
|
.with_min_inner_size([500.0, 300.0])
|
|
.with_icon(
|
|
// NOTE: Adding an icon is optional
|
|
eframe::icon_data::from_png_bytes(&include_bytes!("../assets/icon-256.png")[..])
|
|
.expect("Failed to load icon"),
|
|
),
|
|
..Default::default()
|
|
};
|
|
eframe::run_native(
|
|
"Realm",
|
|
native_options,
|
|
Box::new(|cc| Ok(Box::new(realm_client::app::RealmApp::new(cc)))),
|
|
)
|
|
}
|