Skip to content

Commit

Permalink
Remove internal macros from export + improve macro doc system.
Browse files Browse the repository at this point in the history
Remove the internal macros from re-export.
This was a mistake.
Also, import each item from juniper_codegen manually to enable
rustdoc integration.
  • Loading branch information
theduke committed May 7, 2019
1 parent c7e0c1f commit e045ee4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions juniper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e045ee4

Please sign in to comment.