Skip to content

Commit 5b58e92

Browse files
committed
feat: allow building with the system Lua
1 parent 681612f commit 5b58e92

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

yazi-cli/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ description = "Yazi command-line interface"
88
homepage = "https://yazi-rs.github.io"
99
repository = "https://github.com/sxyazi/yazi"
1010

11+
[features]
12+
default = [ "vendored-lua" ]
13+
vendored-lua = [ "yazi-dds/vendored-lua" ]
14+
1115
[dependencies]
12-
yazi-dds = { path = "../yazi-dds", version = "0.2.5" }
16+
yazi-dds = { path = "../yazi-dds", version = "0.2.5" , default-features = false }
1317

1418
# External dependencies
1519
anyhow = "1.0.82"

yazi-core/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ repository = "https://github.com/sxyazi/yazi"
1212
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.5" }
1313
yazi-boot = { path = "../yazi-boot", version = "0.2.5" }
1414
yazi-config = { path = "../yazi-config", version = "0.2.5" }
15-
yazi-dds = { path = "../yazi-dds", version = "0.2.5" }
16-
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5" }
17-
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5" }
15+
yazi-dds = { path = "../yazi-dds", version = "0.2.5", default-features = false }
16+
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5", default-features = false }
17+
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5", default-features = false }
1818
yazi-scheduler = { path = "../yazi-scheduler", version = "0.2.5" }
1919
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
2020

yazi-fm/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ repository = "https://github.com/sxyazi/yazi"
1010

1111
[features]
1212
default = [ "vendored-lua" ]
13-
vendored-lua = [ "mlua/vendored" ]
13+
vendored-lua = [ "mlua/vendored", "yazi-dds/vendored-lua", "yazi-plugin/vendored-lua", "yazi-proxy/vendored-lua" ]
1414

1515
[dependencies]
1616
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.5" }
1717
yazi-boot = { path = "../yazi-boot", version = "0.2.5" }
1818
yazi-config = { path = "../yazi-config", version = "0.2.5" }
1919
yazi-core = { path = "../yazi-core", version = "0.2.5" }
20-
yazi-dds = { path = "../yazi-dds", version = "0.2.5" }
21-
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5" }
22-
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5" }
20+
yazi-dds = { path = "../yazi-dds", version = "0.2.5" , default-features = false }
21+
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5" , default-features = false }
22+
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5" , default-features = false }
2323
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
2424

2525
# External dependencies

yazi-plugin/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ vendored-lua = [ "mlua/vendored" ]
1616
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.5" }
1717
yazi-boot = { path = "../yazi-boot", version = "0.2.5" }
1818
yazi-config = { path = "../yazi-config", version = "0.2.5" }
19-
yazi-dds = { path = "../yazi-dds", version = "0.2.5" }
20-
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5" }
19+
yazi-dds = { path = "../yazi-dds", version = "0.2.5", default-features = false }
20+
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5", default-features = false }
2121
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
2222

2323
# External dependencies

yazi-scheduler/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repository = "https://github.com/sxyazi/yazi"
1010

1111
[dependencies]
1212
yazi-config = { path = "../yazi-config", version = "0.2.5" }
13-
yazi-dds = { path = "../yazi-dds", version = "0.2.5" }
14-
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5" }
15-
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5" }
13+
yazi-dds = { path = "../yazi-dds", version = "0.2.5", default-features = false }
14+
yazi-plugin = { path = "../yazi-plugin", version = "0.2.5", default-features = false }
15+
yazi-proxy = { path = "../yazi-proxy", version = "0.2.5", default-features = false }
1616
yazi-shared = { path = "../yazi-shared", version = "0.2.5" }
1717

1818
# External dependencies

0 commit comments

Comments
 (0)