Skip to main content

MAX_WALK_DEPTH

Constant MAX_WALK_DEPTH 

Source
pub const MAX_WALK_DEPTH: usize = 64;
Expand description

Maximum number of directories tested during one upward project walk.

The starting directory counts as the first. This cap is a safety net for unusual paths and very deep directory trees. The value is intentionally high enough for common monorepos while bounding worst-case filesystem work.