diff --git a/Cargo.toml b/Cargo.toml index 163c716..ac79a8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,7 +77,11 @@ urlencoding = "2.1" ### RUNTIME -mlua = { version = "0.9.0-beta.3", features = ["luau", "serialize"] } +mlua = { version = "0.9.0-beta.3", features = [ + "luau", + "luau-jit", + "serialize", +] } tokio = { version = "1.24", features = ["full"] } ### SERDE diff --git a/src/lune/lua/create.rs b/src/lune/lua/create.rs index bc5067c..dc22ec8 100644 --- a/src/lune/lua/create.rs +++ b/src/lune/lua/create.rs @@ -78,6 +78,7 @@ pub fn create() -> LuaResult<&'static Lua> { let lua = Lua::new().into_static(); // Enable jit and set global compiler options + lua.enable_jit(true); lua.set_compiler( LuaCompiler::default() .set_coverage_level(0)