utoipauto 0.2.0

Rust Macros to automate the addition of Paths/Schemas to Utoipa crate, simulating Reflection during the compilation phase
Documentation
1
2
3
4
5
6
7
8
9
#![allow(dead_code)] // This code is used in the tests
use utoipauto_macro::utoipa_ignore;

#[utoipa::path(post, path = "/route1")]
pub fn route1() {}

#[utoipa_ignore]
#[utoipa::path(post, path = "/route-ignored")]
pub fn route_ignored() {}