Include derive(JsonSchema)
docs in rustdoc
This commit is contained in:
parent
4db53a1bce
commit
2914a1b66a
8 changed files with 385 additions and 377 deletions
|
@ -16,6 +16,9 @@ use ast::*;
|
|||
use proc_macro2::TokenStream;
|
||||
use syn::spanned::Spanned;
|
||||
|
||||
#[doc = "Derive macro for `JsonSchema` trait."]
|
||||
#[doc = include_str!("../deriving.md")]
|
||||
#[doc = include_str!("../attributes.md")]
|
||||
#[proc_macro_derive(JsonSchema, attributes(schemars, serde, validate))]
|
||||
pub fn derive_json_schema_wrapper(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
||||
let input = parse_macro_input!(input as syn::DeriveInput);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue