use-path 0.0.1

Practical path utility primitives
Documentation
  • Coverage
  • 100%
    28 out of 28 items documented1 out of 18 items with examples
  • Size
  • Source code size: 15.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 513.89 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-fs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-path

Practical path utility primitives for RustUse.

Experimental

use-path is experimental while the use-fs workspace remains below 0.3.0.

Example

use use_path::{PathKind, normalize_path_separators, path_kind};

assert_eq!(path_kind("C:/Users/example"), PathKind::Absolute);
assert_eq!(normalize_path_separators(r"src\lib.rs"), "src/lib.rs");

Scope

  • lexical path classification
  • separator detection and normalization
  • simple path joining and splitting
  • parent, file-name, and extension extraction

Non-goals

  • filesystem access
  • canonicalization against the live filesystem
  • shell expansion
  • symlink resolution

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license