This commit is contained in:
Joscha 2024-05-03 20:26:09 +02:00
parent e9705e5c5c
commit c423162a5f
3 changed files with 60 additions and 2 deletions

View file

@ -1,5 +1,6 @@
use axum::{routing::get, Router};
use clap::Parser;
use maud::{html, Markup};
use tokio::net::TcpListener;
#[derive(Parser)]
@ -7,8 +8,10 @@ struct Args {
addr: String,
}
async fn root() -> &'static str {
"Hello world!"
async fn root() -> Markup {
html! {
h1 { "Hello world!" }
}
}
#[tokio::main]