maquio

Crates.iomaquio
lib.rsmaquio
version0.1.2
sourcesrc
created_at2022-03-18 01:57:47.011266
updated_at2022-06-02 02:31:23.762185
descriptionlibrary for building composable distributed systems
homepage
repositoryhttps://github.com/znx3p0/maquio
max_upload_size
id552484
size13,951
(znx3p0)

documentation

README

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(())
}
Commit count: 8

cargo fmt