summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2020-12-29 22:08:53 +0000
committerAlex Orlenko <zxteam@protonmail.com>2020-12-29 22:26:15 +0000
commitbedd430eb58a998f44fba213b71c8a597efb714a (patch)
tree1a03d260b198a2651072d9fcb52928f48f54b548 /src/lib.rs
parentafc41ab23c2fa6ef340ca90da4065df89f3949e6 (diff)
downloadmlua-bedd430eb58a998f44fba213b71c8a597efb714a.zip
Re-export mlua_derive
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5bccb25..cc5d0d8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -115,3 +115,12 @@ pub use crate::serde::LuaSerdeExt;
pub mod prelude;
#[cfg(feature = "serialize")]
pub mod serde;
+
+// Re-export #[mlua_derive::lua_module].
+#[cfg(feature = "mlua_derive")]
+#[allow(unused_imports)]
+#[macro_use]
+extern crate mlua_derive;
+#[cfg(feature = "mlua_derive")]
+#[doc(hidden)]
+pub use mlua_derive::*;