Login
4 branches 0 tags
Ben (Desktop/Arch) Improved testing / E-Mail validation c321aa9 1 month ago 158 Commits
rubhub / src / main.rs
fn main() {
    let start = std::time::Instant::now();

    #[cfg(debug_assertions)]
    if dotenvy::dotenv().is_err() {
        println!("No .env found, using dev defaults");
    }

    // We do this two-step approach to make it easier to do integration tests.
    let config = rubhub::AppConfig::new().expect("Error creating AppConfig");
    eprintln!("{:?}", config);

    rubhub::run_single_thread(config, start)
}