Skip to content

Commit fe8f6fd

Browse files
author
forge-admin
committed
fix(build): remove zlob default feature to eliminate Zig compiler dependency
The zlob feature in fff-search requires Zig compiler at build time, which is not available in CI/CD environments (Docker, cross-compilation, crates.io publish). This caused build failures across: - Docker multi-arch builds (Ubuntu 20.04) - aarch64 cross-compilation - crates.io publish verification Remove zlob from default features in: - terraphim_file_search (default = []) - terraphim_middleware (remove explicit zlob feature) - terraphim_mcp_server (default = []) The non-Zig fallback provides identical functionality with slightly reduced glob matching performance - acceptable tradeoff for CI reliability.
1 parent 4cff973 commit fe8f6fd

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/terraphim_file_search/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ notify-debouncer-full = "0.6"
2929
# build time (installed on bigbox, the rust-ci VM image, and local Mac dev
3030
# machines via homebrew). On Darwin, see .cargo/config.toml for the
3131
# `-undefined dynamic_lookup` linker workaround.
32-
default = ["zlob"]
32+
default = []
3333
zlob = ["fff-search/zlob"]
3434

3535
[dev-dependencies]

crates/terraphim_mcp_server/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ tokio-util = { version = "0.7" }
4242
axum = { version = "0.8" }
4343

4444
[features]
45-
# zlob default: see terraphim_file_search/Cargo.toml + .cargo/config.toml.
46-
default = ["zlob"]
45+
# zlob: disabled by default to avoid Zig compiler dependency in CI/CD
46+
default = []
4747
openrouter = ["terraphim_config/openrouter"]
4848
zlob = ["fff-search/zlob", "terraphim_file_search/zlob"]
4949
jmap = ["terraphim_middleware/jmap"]

crates/terraphim_middleware/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tokio = { workspace = true, features = ["full"] }
4040

4141
html2md = "0.2.15"
4242
async-trait = { workspace = true }
43-
fff-search = { version = "0.8.4", features = ["zlob"] }
43+
fff-search = { version = "0.8.4" }
4444
terraphim_file_search = { path = "../terraphim_file_search", version = "1.20.0" }
4545

4646
url = "2.5"

0 commit comments

Comments
 (0)