Skip to content

Commit e045ee4

Browse files
committed
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.
1 parent c7e0c1f commit e045ee4

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

juniper/src/lib.rs

+17-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,23 @@ extern crate uuid;
108108
// Depend on juniper_codegen and re-export everything in it.
109109
// This allows users to just depend on juniper and get the derive
110110
// functionality automatically.
111-
#[doc(hidden)]
112-
pub use juniper_codegen::*;
111+
pub use juniper_codegen::{
112+
GraphQLEnum,
113+
GraphQLInputObject,
114+
GraphQLObject,
115+
GraphQLScalarValue,
116+
ScalarValue,
117+
impl_object,
118+
};
119+
// Internal macros are not exported,
120+
// but declared at the root to make them easier to use.
121+
#[allow(unused_imports)]
122+
use juniper_codegen::{
123+
GraphQLScalarValueInternal,
124+
GraphQLEnumInternal,
125+
GraphQLInputObjectInternal,
126+
impl_object_internal,
127+
};
113128

114129
#[macro_use]
115130
mod value;

0 commit comments

Comments
 (0)