发布

  • fix(core): emit compile_error for --no-default-features (#659) (#661)

    frostbyte_neo 发布于 2026-07-08 16:39:26 +00:00

    fff-search supports two mutually exclusive backend features (ripgrep
    default, or zlob) but internal cfg gates keyed off
    cfg(not(feature = "zlob")), meaning the ripgrep code compiled even
    when the ripgrep feature (and its ignore/globset deps) was off.
    Building with --no-default-features produced a wall of
    "unresolved crate" errors.

    Tighten the gates to all(not(feature = "zlob"), feature = "ripgrep")
    and add a top-level compile_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

    下载附件