#path #utf-8 #guarantees #filesystem-path

utf8path

utf8path provides a String-friendly path type

11 releases (breaking)

0.9.1 Aug 8, 2025
0.8.0 Jun 14, 2025
0.7.0 Feb 4, 2025
0.6.0 Oct 1, 2024
0.1.0 Apr 22, 2024

#630 in Filesystem

Download history 4/week @ 2025-07-23 251/week @ 2025-08-06 23/week @ 2025-08-13 63/week @ 2025-08-20 51/week @ 2025-08-27 140/week @ 2025-09-03 117/week @ 2025-09-10 55/week @ 2025-09-17 77/week @ 2025-09-24 130/week @ 2025-10-01 19/week @ 2025-10-08 81/week @ 2025-10-15 79/week @ 2025-10-22 34/week @ 2025-10-29

223 downloads per month
Used in 20 crates (17 directly)

Apache-2.0

33KB
927 lines

utf8path

utf8path provides a Path object that is guaranteed to be convertible to and from UTF8 with sane semantics. Further restrictions, such as those imposed by the filesystem/kernel, are not enforced by this library.

Status

New. This library is new, so it will likely see changes in the near future as it sees more use.

Scope

This library provides the Path object with sane dirname and basename methods.

Warts

The implementations provided don't use the components method. Ideally, we could use them, but it was easier to manually juggle path separations.

Documentation

The latest documentation is always available at docs.rs.

No runtime deps