metasearch/src/main.rs

20 lines
387 B
Rust
Raw Normal View History

2024-04-13 02:17:34 +00:00
use config::Config;
pub mod config;
2023-12-20 06:18:09 +00:00
pub mod engines;
pub mod normalize;
pub mod parse;
pub mod web;
#[tokio::main(flavor = "current_thread")]
2023-12-20 06:18:09 +00:00
async fn main() {
2024-04-13 02:17:34 +00:00
let config = match Config::read_or_create() {
Ok(config) => config,
Err(err) => {
eprintln!("Couldn't parse config:\n{err}");
return;
}
};
web::run(config).await;
2023-12-20 06:18:09 +00:00
}