3 releases
0.1.2 | Jun 2, 2022 |
---|---|
0.1.1 | Jun 1, 2022 |
0.1.0 | Mar 18, 2022 |
#134 in #microservices
Used in june
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
~11–22MB
~296K SLoC