-
fix(core): emit compile_error for --no-default-features (#659) (#661)
发布于
2026-07-08 16:39:26 +00:00 | 104 次提交 在此版本后已推送到 mainfff-searchsupports two mutually exclusive backend features (ripgrep
default, orzlob) but internal cfg gates keyed off
cfg(not(feature = "zlob")), meaning the ripgrep code compiled even
when theripgrepfeature (and itsignore/globsetdeps) was off.
Building with--no-default-featuresproduced a wall of
"unresolved crate" errors.Tighten the gates to
all(not(feature = "zlob"), feature = "ripgrep")
and add a top-levelcompile_error!when neither backend is enabled,
so the failure is a single actionable message instead of 15 cascading
errors.Refs #659
Co-authored-by: gustav-fff 286169375+gustav-fff@users.noreply.github.com
下载附件