https://github.com/znx3p0/maquio
https://github.com/znx3p0/maquio
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/znx3p0/maquio
- Owner: znx3p0
- Created: 2022-03-18T01:48:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T02:30:57.000Z (almost 3 years ago)
- Last Synced: 2025-04-19T15:29:38.501Z (about 1 month ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Maquio
Library for building composable distributed systems.
```rust
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(())
}
```