planetwars.dev/planetwars-server/src/main.rs
2021-12-30 11:45:59 +01:00

16 lines
324 B
Rust

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();
}