From 52d7af2b8ed09c719ee83ae1117082330c83f004 Mon Sep 17 00:00:00 2001
From: Christoph Herzog <chris@theduke.at>
Date: Tue, 7 May 2019 11:16:14 +0200
Subject: [PATCH] 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.
---
 juniper/src/lib.rs | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/juniper/src/lib.rs b/juniper/src/lib.rs
index 65f8e9df..5b955218 100644
--- a/juniper/src/lib.rs
+++ b/juniper/src/lib.rs
@@ -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;