10 releases (5 stable)

1.3.0 Aug 3, 2024
1.2.0 Feb 17, 2024
1.1.1 Mar 31, 2023
1.0.1 Dec 17, 2022
0.1.0 Nov 9, 2020

#46 in Filesystem

Download history 119266/week @ 2024-07-31 99314/week @ 2024-08-07 100589/week @ 2024-08-14 107262/week @ 2024-08-21 95405/week @ 2024-08-28 103384/week @ 2024-09-04 93539/week @ 2024-09-11 88025/week @ 2024-09-18 88647/week @ 2024-09-25 99054/week @ 2024-10-02 101621/week @ 2024-10-09 102985/week @ 2024-10-16 106058/week @ 2024-10-23 94972/week @ 2024-10-30 100161/week @ 2024-11-06 74787/week @ 2024-11-13

392,514 downloads per month
Used in 631 crates (50 directly)

MIT/Apache

64KB
1K SLoC

NormPath

This crate provides methods to normalize paths in the recommended way for the operating system.

It was made to fix a recurring bug caused by using fs::canonicalize on Windows: #45067, #48249, #52440, #55812, #58613, #59107, #74327. Normalization is usually a better choice unless you specifically need a canonical path.

GitHub Build Status

Usage

Add the following lines to your "Cargo.toml" file:

[dependencies]
normpath = "1.3"

See the documentation for available functionality and examples.

Rust version support

The minimum supported Rust toolchain version is currently Rust 1.74.0.

Minor version updates may increase this version requirement. However, the previous two Rust releases will always be supported. If the minimum Rust version must not be increased, use a tilde requirement to prevent updating this crate's minor version:

[dependencies]
normpath = "~1.3"

License

Licensing terms are specified in COPYRIGHT.

Unless you explicitly state otherwise, any contribution submitted for inclusion in this crate, as defined in LICENSE-APACHE, shall be licensed according to COPYRIGHT, without any additional terms or conditions.

Third-party content

This crate includes copies and modifications of content developed by third parties:

See those files for more details.

Copies of third-party licenses can be found in LICENSE-THIRD-PARTY.

Dependencies

~0–8.5MB
~65K SLoC