summaryrefslogtreecommitdiff
path: root/src/server/main.rs
blob: 3ecd17b5f0e2ee9e8ca28ada3bfd05e916af033e (plain)
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;
}