1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 21:12:28 +00:00
deprecated-gotham-restful/gotham_restful_derive/src/lib.rs

14 lines
263 B
Rust
Raw Normal View History

2019-10-02 10:59:25 +02:00
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)
}