mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Enable jit
This commit is contained in:
parent
55a2338a3e
commit
fea97972a2
2 changed files with 6 additions and 1 deletions
|
@ -77,7 +77,11 @@ urlencoding = "2.1"
|
||||||
|
|
||||||
### RUNTIME
|
### 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"] }
|
tokio = { version = "1.24", features = ["full"] }
|
||||||
|
|
||||||
### SERDE
|
### SERDE
|
||||||
|
|
|
@ -78,6 +78,7 @@ pub fn create() -> LuaResult<&'static Lua> {
|
||||||
let lua = Lua::new().into_static();
|
let lua = Lua::new().into_static();
|
||||||
|
|
||||||
// Enable jit and set global compiler options
|
// Enable jit and set global compiler options
|
||||||
|
lua.enable_jit(true);
|
||||||
lua.set_compiler(
|
lua.set_compiler(
|
||||||
LuaCompiler::default()
|
LuaCompiler::default()
|
||||||
.set_coverage_level(0)
|
.set_coverage_level(0)
|
||||||
|
|
Loading…
Reference in a new issue