tide 0.0.5

WIP modular web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(async_await, futures_api)]

async fn echo_path(path: tide::head::Path<String>) -> String {
    format!("Your path is: {}", *path)
}

fn main() {
    let mut app = tide::App::new(());
    app.at("/echo_path").nest(|router| {
        router.at("*").get(echo_path);
    });

    app.serve();
}