summaryrefslogtreecommitdiff
path: root/src/ffi/mod.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2021-06-12 18:00:55 +0100
committerAlex Orlenko <zxteam@protonmail.com>2021-06-12 18:00:55 +0100
commit3b9d8a7b5f521e80683fc5b54a039b609c4b5b8c (patch)
tree6520f376743c56f5230a0245604b58be37f62ecb /src/ffi/mod.rs
parent0fe898c0ddda8e567ce0506eb518001db9419d84 (diff)
downloadmlua-3b9d8a7b5f521e80683fc5b54a039b609c4b5b8c.zip
Keep all Lua symbols in unsafe mode to load C modules
Diffstat (limited to 'src/ffi/mod.rs')
-rw-r--r--src/ffi/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ffi/mod.rs b/src/ffi/mod.rs
index 87bfa9b..4b9ff32 100644
--- a/src/ffi/mod.rs
+++ b/src/ffi/mod.rs
@@ -280,6 +280,9 @@ pub const SYS_MIN_ALIGN: usize = 8;
)))]
pub const SYS_MIN_ALIGN: usize = 16;
+// Re-rexport all symbols
+pub use symbols::keep_lua_symbols;
+
#[allow(unused_imports, dead_code, non_camel_case_types)]
#[allow(clippy::unreadable_literal)]
mod glue {
@@ -293,5 +296,6 @@ mod lauxlib;
mod lua;
mod luaconf;
mod lualib;
+mod symbols;
pub mod safe;