mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 21:12:28 +00:00
14 lines
263 B
Rust
14 lines
263 B
Rust
|
extern crate proc_macro;
|
||
|
|
||
|
use proc_macro::TokenStream;
|
||
|
|
||
|
#[cfg(feature = "openapi")]
|
||
|
mod openapi_type;
|
||
|
|
||
|
#[cfg(feature = "openapi")]
|
||
|
#[proc_macro_derive(OpenapiType)]
|
||
|
pub fn derive_openapi_type(tokens : TokenStream) -> TokenStream
|
||
|
{
|
||
|
openapi_type::expand(tokens)
|
||
|
}
|