rws-macros 17.31.0

Procedural macros for rust-web-server (route attributes)
Documentation
1
2
3
4
5
6
7
8
9
// A `Path` argument needs route parameters to take.
use rws_macros::get;

#[get("/posts")]
fn list(Path(id): Path<u64>) -> String {
    format!("{id}")
}

fn main() {}