Enable jit

This commit is contained in:
Filip Tibell 2023-08-05 17:53:32 -05:00
parent 55a2338a3e
commit fea97972a2
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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)