9 releases (4 stable)

1.2.0 Feb 17, 2024
1.1.1 Mar 31, 2023
1.1.0 Jan 29, 2023
1.0.1 Dec 17, 2022
0.1.0 Nov 9, 2020

#55 in Filesystem

Download history 59984/week @ 2023-12-02 56076/week @ 2023-12-09 52838/week @ 2023-12-16 40627/week @ 2023-12-23 53710/week @ 2023-12-30 58560/week @ 2024-01-06 70715/week @ 2024-01-13 67188/week @ 2024-01-20 67565/week @ 2024-01-27 73474/week @ 2024-02-03 69035/week @ 2024-02-10 76575/week @ 2024-02-17 81992/week @ 2024-02-24 90710/week @ 2024-03-02 89076/week @ 2024-03-09 75035/week @ 2024-03-16

350,275 downloads per month
Used in 437 crates (39 directly)

MIT/Apache

60KB
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.2"

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.2"

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–10MB
~76K SLoC