shiritori/src/main.rs
2023-04-26 18:27:54 -07:00

21 lines
415 B
Rust

mod client;
mod database;
mod dictionary;
mod response;
mod room;
mod server;
mod utils;
mod word;
use crate::server::{Server, ServerSettings};
fn main() {
let settings = ServerSettings::default();
let mut server = Server::new(&settings).unwrap_or_else(|error| {
panic!(
"Failed to start server at port {}: {:?}",
settings.port, error
)
});
server.run();
}