MCPcopy Index your code
hub / github.com/dylni/normpath

github.com/dylni/normpath @1.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.5.1 ↗ · + Follow
154 symbols 319 edges 17 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

See the documentation for available functionality and examples.

Rust version support

The minimum supported Rust toolchain version is currently Rust 1.81.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.5"

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.

Extension points exported contracts — how you extend this code

PathExt (Interface)
Additional methods added to [`Path`]. [1 implementers]
src/lib.rs
TokenStreamExt (Interface)
(no doc) [1 implementers]
macros/src/lib.rs
Sealed (Interface)
(no doc) [1 implementers]
src/lib.rs

Core symbols most depended-on inside this repo

as_path
called by 28
src/base.rs
as_os_str
called by 21
src/base.rs
test
called by 13
tests/localization.rs
assert_eq
called by 11
tests/common.rs
push
called by 10
src/base.rs
to_owned
called by 6
src/base.rs
test
called by 6
tests/windows.rs
components
called by 5
src/base.rs

Shape

Method 79
Function 57
Class 15
Interface 3

Languages

Rust100%

Modules by API surface

src/base.rs55 symbols
src/windows/mod.rs14 symbols
tests/windows.rs12 symbols
src/common/localize/macos/fruity.rs12 symbols
src/common/localize/macos/mod.rs10 symbols
macros/src/lib.rs9 symbols
tests/localization.rs7 symbols
tests/common.rs7 symbols
src/lib.rs7 symbols
src/error.rs6 symbols
src/common/mod.rs6 symbols
tests/integration.rs3 symbols

For agents

$ claude mcp add normpath \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact