Login
4 branches 0 tags
Ben (T14s/Arch Linux) Fixed sidebar browse link 86c08bf 1 month ago 179 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");
    rubhub::run_single_thread(config, start)
}