3 ms·
Custom derive: #[derive(Serialize)] <- you can write anything inside the ()s Full on procedural macros, attribute style: #[get("/hello/<name>/<age>")
by steveklabnik 10y ago
Custom derive:
#[derive(Serialize)] <- you can write anything inside the ()s
Full on procedural macros, attribute style:
#[get("/hello/<name>/<age>")] <- you can write anything inside the []s
- stepik777 10y agoCan rocket use `#[derive(get("/hello/<name>/<age>"))]` instead of `#[get("/hello/<name>/<age>")]`?
- steveklabnik 10y agoNo, because its creator is not willing to compromise on ergonomics in order to get on stable. I would imagine that they would reject this on these grounds alone.