nuclear 0.0.10

[WIP] a web framework for humans
Documentation
1
2
3
4
5
6
7
8
9
10
11
use nuclear::functional::handler;
use nuclear::prelude::{Handler, Request, Result};

async fn hello(_req: Request) -> &'static str {
    "hello"
}

#[tokio::main]
async fn main() -> Result<()> {
    handler(hello).into_server().run("127.0.0.1:8080").await
}