aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/main.rs
blob: 9bd283e6d402f5a818600874af089b741d97af31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::net::SocketAddr;

extern crate planetwars_server;
extern crate tokio;

#[tokio::main]
async fn main() {
    let app = planetwars_server::app().await;

    let addr = SocketAddr::from(([127, 0, 0, 1], 9000));

    axum::Server::bind(&addr)
        .serve(app.into_make_service())
        .await
        .unwrap();
}