Remove internal macros from export + improve macro doc system.

Remove the internal macros from re-export.
This was a mistake.
Also, import each item from juniper_codegen manually to enable
rustdoc integration.
This commit is contained in:
Christoph Herzog 2019-05-07 11:16:14 +02:00
parent f72f808be3
commit 52d7af2b8e
No known key found for this signature in database
GPG key ID: DAFF71D48B493238

View file

@ -108,8 +108,23 @@ extern crate uuid;
// Depend on juniper_codegen and re-export everything in it.
// This allows users to just depend on juniper and get the derive
// functionality automatically.
#[doc(hidden)]
pub use juniper_codegen::*;
pub use juniper_codegen::{
GraphQLEnum,
GraphQLInputObject,
GraphQLObject,
GraphQLScalarValue,
ScalarValue,
impl_object,
};
// Internal macros are not exported,
// but declared at the root to make them easier to use.
#[allow(unused_imports)]
use juniper_codegen::{
GraphQLScalarValueInternal,
GraphQLEnumInternal,
GraphQLInputObjectInternal,
impl_object_internal,
};
#[macro_use]
mod value;