Skip to main content

should_exclude_path

Function should_exclude_path 

Source
pub fn should_exclude_path(
    root: &Path,
    path: &Path,
    patterns: &[impl AsRef<str>],
) -> bool
Expand description

Check if a path should be excluded.

Patterns listed in ROOT_GENERATED_DIRS match only the first relative path component, so source paths like src/package/build/mod.rs remain indexable. Other exclude patterns match any component of the relative path. Root-generated directory names are literal component names; wildcard patterns such as build* do not get root-only special handling.