summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2017-07-24 07:12:52 -0400
committerkyren <kerriganw@gmail.com>2017-07-24 07:12:52 -0400
commitc7d2311c6a00d686113a35a4f7692704f39182f8 (patch)
treef6c0e646bdf8036feabd584733e907a6b32b571e /src/lib.rs
parent8f044755dcdc91837a3d53e7ec25b95c9d836b20 (diff)
downloadmlua-c7d2311c6a00d686113a35a4f7692704f39182f8.zip
Do several more Lua prefix renames, add prelude module
Rename the following: LuaNil => Nil LuaExternalError => ExternalError LuaExternalResult => ExternalResult LuaCallback => Callback (internal only) Use qualified re-exports at the top of the module. Add a new public 'prelude' module which re-exports everything with a non-conflicting name (Adds back the Lua prefix), and is meant to be imported unqualified.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ee25344..2a36825 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,6 +12,10 @@ mod multi;
#[cfg(test)]
mod tests;
-pub use error::*;
-pub use lua::*;
-pub use multi::*;
+pub use error::{Error, Result, ExternalError, ExternalResult};
+pub use lua::{Value, Nil, ToLua, FromLua, MultiValue, ToLuaMulti, FromLuaMulti, Integer, Number,
+ LightUserData, String, Table, TablePairs, TableSequence, Function, ThreadStatus,
+ Thread, MetaMethod, UserDataMethods, UserData, AnyUserData, Lua};
+pub use multi::Variadic;
+
+pub mod prelude;