1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use tokio::net::TcpListener; use crate::server::{Server, tcpserver::TCPServer}; pub(crate) mod server; pub(crate) mod tasks; #[tokio::main] async fn main() { TCPServer::new( TcpListener::bind("0.0.0.0:8080") .await .unwrap(), ) .listen() .await; }