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:
parent
f72f808be3
commit
52d7af2b8e
1 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue