#puzz #web #http #async

puzz-core

Core types and traits for puzz

1 unstable release

0.1.0 May 17, 2022

#8 in #puzz

Download history 3/week @ 2024-02-11 14/week @ 2024-02-18 37/week @ 2024-02-25 12/week @ 2024-03-03 18/week @ 2024-03-10 10/week @ 2024-03-17

77 downloads per month
Used in 5 crates

MIT license

86KB
2K SLoC

Puzz

一个简单且强大的网络框架

例子

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();
}

Dependencies

~1.5MB
~24K SLoC