Skip to main content

IGNORED_DIR_NAMES

Constant IGNORED_DIR_NAMES 

Source
pub const IGNORED_DIR_NAMES: &[&str];
Expand description

Directory names a recursive filesystem walk should never descend into — build output and VCS/dependency metadata that is never a valid source location and can be enormous. Originally added to brink-driver’s RealFs walk alone (issue #1381: #1370 fixed config discovery to probe ancestors directly instead of enumerating, but the native compile walk — the other call path paying the same cost — still descended into these). Promoted here (issue #1402) so every host-side recursive walk — brink-driver’s RealFs and brink-lsp’s workspace scan alike — prunes the same directories instead of each re-deriving its own list. Matched by exact directory-entry name, not path suffix, so a source file legitimately named e.g. target.brink is unaffected.

Sharing the list was only half the problem: each walk still had to remember to consult it. Walk (issue #1433) applies this list by construction, and is where every recursive traversal enforces it now.