diff --git a/src/main.rs b/src/main.rs index dfd900b..89281c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,8 @@ impl Default for Config { } } -fn main() -> Result<(), Box> { +#[tokio::main] +async fn main() -> Result<(), Box> { let clap_matches = Options::clap().get_matches(); let options = Options::from_clap(&clap_matches); @@ -53,6 +54,9 @@ fn main() -> Result<(), Box> { #[cfg(debug_assertions)] println!("{:?}", options); + #[cfg(feature = "sqlite")] + let sqlite_connection = connect_sqlite(&config.database_path).await?; + Ok(()) }