mirror of
https://github.com/clowzed/sero
synced 2024-05-23 09:42:12 +02:00
16 lines
334 B
Rust
16 lines
334 B
Rust
use std::net::SocketAddr;
|
|
|
|
use sero::{config, prepare};
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let app = prepare().await;
|
|
let config = config::Config::default();
|
|
let addr = SocketAddr::from(([0, 0, 0, 0], config.port));
|
|
|
|
axum::Server::bind(&addr)
|
|
.serve(app.into_make_service())
|
|
.await
|
|
.unwrap();
|
|
}
|