3 releases (breaking)

0.3.0 Mar 30, 2021
0.2.0 Jan 15, 2021
0.1.0 Nov 9, 2020

#87 in Filesystem

Download history 893/week @ 2021-04-07 1259/week @ 2021-04-14 977/week @ 2021-04-21 1128/week @ 2021-04-28 1045/week @ 2021-05-05 1032/week @ 2021-05-12 1232/week @ 2021-05-19 967/week @ 2021-05-26 1667/week @ 2021-06-02 1318/week @ 2021-06-09 1038/week @ 2021-06-16 1348/week @ 2021-06-23 1519/week @ 2021-06-30 2019/week @ 2021-07-07 1378/week @ 2021-07-14 1636/week @ 2021-07-21

3,862 downloads per month
Used in 13 crates (4 directly)

MIT/Apache

41KB
751 lines

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 = "0.3"

See the documentation for available functionality and examples.

Rust version support

The minimum supported Rust toolchain version is currently Rust 1.41.0.

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 software

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

  • src/cmp.rs and tests/rust.rs contain modifications of code from The Rust Programming Language, licensed under the MIT License or the Apache License, Version 2.0.

See those files for more details.

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

Dependencies

~98KB