Disable doctests for derive code snippets
This commit is contained in:
parent
2914a1b66a
commit
8438865588
2 changed files with 2 additions and 3 deletions
|
@ -17,8 +17,7 @@ use proc_macro2::TokenStream;
|
|||
use syn::spanned::Spanned;
|
||||
|
||||
#[doc = "Derive macro for `JsonSchema` trait."]
|
||||
#[doc = include_str!("../deriving.md")]
|
||||
#[doc = include_str!("../attributes.md")]
|
||||
#[cfg_attr(not(doctest), 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