aboutsummaryrefslogtreecommitdiff
path: root/src/prelude_internal.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-05 23:10:44 -0700
committerAustin Hellyer <[email protected]>2016-11-05 23:10:44 -0700
commit37ee7883398ffb2b4e4e9e1652468f9afbb7b57b (patch)
treeca037c8d29163e50f2ce8e371c039ab6b2a7382d /src/prelude_internal.rs
parentConvert all doc anchors to named anchors (diff)
downloadserenity-37ee7883398ffb2b4e4e9e1652468f9afbb7b57b.tar.xz
serenity-37ee7883398ffb2b4e4e9e1652468f9afbb7b57b.zip
Add a prelude for userland
Users can now import all of a prelude via `use serenity::prelude::*;`, which should provide some helpful stuff. As such, the internal prelude is now named `serenity::prelude_internal`, and all internal uses have been adjusted.
Diffstat (limited to 'src/prelude_internal.rs')
-rw-r--r--src/prelude_internal.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/prelude_internal.rs b/src/prelude_internal.rs
new file mode 100644
index 0000000..9b6b993
--- /dev/null
+++ b/src/prelude_internal.rs
@@ -0,0 +1,9 @@
+//! These prelude re-exports are a set of exports that are commonly used from
+//! within the library.
+//!
+//! These are not publicly re-exported to the end user, and must stay as a
+//! private module.
+
+pub use serde_json::Value;
+pub use ::client::ClientError;
+pub use ::error::{Error, Result};