vantus 0.2.0

Macro-first async Rust web platform with typed extraction, DI, and configuration binding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use vantus::{Response, controller, get};

#[derive(Clone, Default)]
struct BadController;

#[controller]
impl BadController {
    #[get("/broken")]
    fn broken(&self, (value, _other): (String, String)) -> Response {
        Response::text(value)
    }
}

fn main() {}