21 lines
547 B
Rust
21 lines
547 B
Rust
mod logger;
|
|
use crate::logger::logger as log;
|
|
mod debug;
|
|
mod assets;
|
|
mod routing;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
// build our application with auto-routing
|
|
let app = routing::create_router();
|
|
|
|
debug::static_content::print_static_content();
|
|
|
|
// run our app with hyper, listening globally on port 3000
|
|
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
|
log(0, "Server started successfully on port 3000", true);
|
|
axum::serve(listener, app).await.unwrap();
|
|
|
|
log(0, "gkweb started", true)
|
|
|
|
}
|