Volga
Fast, Easy, and very flexible Web Framework for Rust based on Tokio runtime and hyper for fun and painless microservices crafting.
Getting Started
[dependencies]
volga = "0.5.5"
tokio = { version = "1", features = ["full"] }
use volga::*;
#[tokio::main]
async fn main() -> std::io::Result<()> {
// Configure the HTTP server
let mut app = App::new().bind("localhost:7878");
// Configure the GET request handler
app.map_get("/hello/{name}", async |name: String| {
ok!("Hello {}!", name)
});
// Run it
app.run().await
}