summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2021-05-03 21:16:42 +0100
committerAlex Orlenko <zxteam@protonmail.com>2021-05-03 21:33:49 +0100
commit0f4bcca7ce723274c6950ce3764b76e5f472bc27 (patch)
treea7bb16ae0bb613f34326e421989ca8a7ef04c700 /src/lib.rs
parent585c0a25d81040b3697d957ef851179bc788d48b (diff)
downloadmlua-0f4bcca7ce723274c6950ce3764b76e5f472bc27.zip
Add `LuaOptions` to customize Lua/Rust behaviour.
The only option is `catch_rust_panics` to optionally disable catching Rust panics via pcall/xpcall.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bdffff2..4735aca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -103,7 +103,7 @@ pub use crate::ffi::lua_State;
pub use crate::error::{Error, ExternalError, ExternalResult, Result};
pub use crate::function::Function;
pub use crate::hook::{Debug, DebugNames, DebugSource, DebugStack, HookTriggers};
-pub use crate::lua::{Chunk, ChunkMode, GCMode, Lua};
+pub use crate::lua::{Chunk, ChunkMode, GCMode, Lua, LuaOptions};
pub use crate::multi::Variadic;
pub use crate::scope::Scope;
pub use crate::stdlib::StdLib;