Skip to main content

NativePath

Type Alias NativePath 

Source
pub type NativePath = NormalizedPath;
Expand description

Type alias for NormalizedPath.

NativePath and CanonicalPath were functionally identical types that both represented paths normalized via path::canonicalize(). They have been consolidated into a single NormalizedPath type to eliminate code duplication, with both original names maintained as permanent aliases for semantic clarity.

§Rationale

The anticipated platform-specific differences between NativePath and CanonicalPath never materialized. Both types had identical implementations (338 lines of duplicated code), causing maintenance burden with no functional benefit. Rather than deprecate the names, they are maintained as aliases to preserve semantic meaning in different contexts.

See spec ADR-009 for full architectural decision record.

Aliased Type§

pub struct NativePath(/* private fields */);