- Modular and async-first
- Middleware support
- Focused on simplicity and ease of use
- Built with async-std, an async runtime for the web
use tide::Request;
async fn hello(_: Request<()>) -> &'static str {
"Hello, Tide!"
}
#[async_std::main]
async fn main() -> tide::Result<()> {
let mut app = tide::new();
app.at("/").get(hello);
app.listen("127.0.0.1:8080").await?;
Ok(())
}