You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oab/src/main.rs

16 lines
389 B
Rust

3 years ago
use oab::{cfg, models};
use tracing::{info, warn};
#[tokio::main]
async fn main() -> std::io::Result<()> {
let mut cf = cfg::ApplicationConfig::new();
cfg::init_log();
cf.log_dir = "".to_string();
cf.connect().await;
info!("{}", cf.server_url);
warn!("{}", cf.db_url);
models::init().await;
println!("Hello, world!");
return std::io::Result::Ok(());
}