DEVELOPMENT ENVIRONMENT

~liljamo/ulairi

ref: e78be1f39347874c13c8ff1c08025ec375b5e928 ulairi/ulairi-client/src/main.rs -rw-r--r-- 696 bytes
e78be1f3Jonni Liljamo I lost the old commit history... 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![forbid(unsafe_code)]
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all, rust_2018_idioms)]
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] //Hide console window in release builds on Windows, this blocks stdout.

mod app;

use load_dotenv::load_dotenv;

load_dotenv!();

#[tokio::main]
async fn main() {
    println!("Starting tuntikirjanpito...");
    println!("Using {} as web api address.", env!("WEB_API_ADDRESS"));

    let native_options = eframe::NativeOptions::default();
    eframe::run_native(
        "Tuntikirjanpito",
        native_options,
        Box::new(|cc| Box::new(app::App::new(cc))),
    );
}