Files
BoilR/src/main.rs
T

30 lines
445 B
Rust

mod egs;
mod gog;
mod itch;
mod legendary;
mod origin;
mod platform;
mod settings;
mod sync;
mod steam;
mod steamgriddb;
#[cfg(feature = "ui")]
mod ui;
use std::error::Error;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
#[cfg(feature = "ui")]
{
ui::run_ui().await
}
#[cfg(not(feature = "ui"))]
{
let settings = settings::Settings::new()?;
sync::run_sync(&settings).await
}
}