uni-path 1.51.1

Platform-independent path manipulation
Documentation
  • Coverage
  • 100%
    53 out of 53 items documented39 out of 48 items with examples
  • Size
  • Source code size: 86.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 8.88 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • agerasev/uni-path
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nthend agerasev

uni-path

Platform-independent Unix-style path manipulation.

Rationale

Rust's std::path module provides convenient way of path manipulation. It would be nice to use such paths not only with OS file system, but with virtual one (e.g. in-memory fs). Unfortunately, std::path is platform-dependent what means that its behavior is different on different platform.

About

This crate is very similar to std::path because its source code was simply copied from std::path implementation and only the following points were modified:

  • Remove all platform-dependent conditions and leave only Unix code.
  • Use str and String instead of OsStr and OsString.
  • Remove all interactions with OS file system.