vantus 0.3.0

Macro-first async Rust backend framework with explicit composition, typed extraction, and hardened HTTP defaults.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use vantus::module;

#[derive(Default)]
struct InvalidPathParameterModule;

#[module]
impl InvalidPathParameterModule {
    #[vantus::get("/users/{id}")]
    fn show(&self, name: vantus::Path<String>) -> vantus::Response {
        vantus::Response::text(name.into_inner())
    }
}

fn main() {}