a lot of shit

This commit is contained in:
grechkagk 2025-11-16 23:25:38 +08:00
parent 002767b85a
commit c3f365e1f6
16 changed files with 1247 additions and 2 deletions

View file

@ -1,3 +1,21 @@
fn main() {
println!("Hello, world!");
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)
}