BreweryControlSystem/code/src/main.rs

36 lines
830 B
Rust

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use crate::reports::Reporter;
mod app;
mod database;
mod material_tab;
mod models;
mod production_tab;
mod recipe_tab;
mod reports;
mod tab;
mod worker_database;
mod worker_tab;
mod lib;
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)))
}),
);
}