From a771308782da2e20929e178a799825edbb2e8a12 Mon Sep 17 00:00:00 2001 From: Mag Mell Date: Sun, 10 Dec 2023 13:29:00 +0800 Subject: [PATCH] fix: do not use `LuaJIT` in riscv64 and loongarch64 architecture (#439) --- yazi-plugin/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yazi-plugin/Cargo.toml b/yazi-plugin/Cargo.toml index c3c5f55e..b95e9153 100644 --- a/yazi-plugin/Cargo.toml +++ b/yazi-plugin/Cargo.toml @@ -16,7 +16,12 @@ yazi-shared = { path = "../yazi-shared", version = "0.1.5" } # External dependencies ansi-to-tui = "^3" anyhow = "^1" -mlua = { version = "^0", features = [ "luajit52", "vendored", "serialize" ] } ratatui = "^0" tracing = { version = "^0", features = [ "max_level_debug", "release_max_level_warn" ] } unicode-width = "^0" + +[target.'cfg(any(target_arch = "riscv64", target_arch="loongarch64"))'.dependencies] +mlua = { version = "^0", features = [ "lua52", "vendored", "serialize" ] } + +[target.'cfg(not(any(target_arch = "riscv64", target_arch="loongarch64")))'.dependencies] +mlua = { version = "^0", features = [ "luajit52", "vendored", "serialize" ] }