34 lines
780 B
Rust
34 lines
780 B
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
mod app;
|
|
mod database;
|
|
mod material_tab;
|
|
mod models;
|
|
mod production_tab;
|
|
mod recipe_tab;
|
|
mod reports;
|
|
mod tab;
|
|
mod worker_tab;
|
|
mod misc;
|
|
|
|
fn main() {
|
|
dotenvy::dotenv().ok();
|
|
database::estabilish_connection();
|
|
let mut native_opts = eframe::NativeOptions {
|
|
viewport: egui::ViewportBuilder::default()
|
|
.with_inner_size([700.0, 300.0])
|
|
.with_min_inner_size([650.0, 200.0]),
|
|
..Default::default()
|
|
};
|
|
native_opts.renderer = eframe::Renderer::Glow;
|
|
|
|
eframe::run_native(
|
|
"BCS",
|
|
native_opts,
|
|
Box::new(|cc| {
|
|
egui_extras::install_image_loaders(&cc.egui_ctx);
|
|
Ok(Box::new(app::App::new(cc)))
|
|
}),
|
|
);
|
|
}
|