Crates.io | puzz |
lib.rs | puzz |
version | 0.2.0 |
source | src |
created_at | 2022-05-17 06:47:28.487805 |
updated_at | 2022-05-31 06:25:58.967293 |
description | A simple and powerful web framework. |
homepage | |
repository | https://github.com/chen-dk/puzz |
max_upload_size | |
id | 588184 |
size | 15,664 |
一个简单且强大的网络框架
use puzz::{service_fn, Server};
#[tokio::main]
async fn main() {
Server::new(|| service_fn(|_| async { Ok("Hello, World!!!") }))
.bind(([127, 0, 0, 1], 80))
.run()
.await
.unwrap();
}