3 releases

0.1.2 Jun 2, 2022
0.1.1 Jun 1, 2022
0.1.0 Mar 18, 2022

#95 in #async-http

Download history 3/week @ 2024-02-18 23/week @ 2024-02-25 1/week @ 2024-03-03 1/week @ 2024-03-10 60/week @ 2024-03-31 1/week @ 2024-04-07

61 downloads per month
Used in june

MIT license

14KB
353 lines

Maquio

Library for building composable distributed systems.

async fn main() -> Result<()> {
    let router = Router::new()
        .route("/", hello)
        .route("/hello", hello);
    let tcp_handle = Tcp::bind("127.0.0.1:8080", router).await?;

    tcp_handle.await?;
    Ok(())
}

async fn hello(c: Channel) -> Result<()> {
    c.send("Hello world!");
    Ok(())
}

Dependencies

~10–22MB
~331K SLoC