NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1124 most downloaded on crates.io
Provides typed variants of Path and PathBuf for Unix and Windows
Latest stable
0.13.0
Last release 1 months ago
20 Oct 2026
Release timing varies
gaps range from 8 days to 8 months
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
26 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Add optional serde feature to serialize and deserialize paths
serde feature to serialize and deserialize paths (#66)\\server\share as absolute,
with or without a trailing separator (#62)absolutize for ambiguous Windows paths such as
C:something and \\server instead of succeeding (#63)set_extension and with_extension on paths with anything trailing the
file name, such as a trailing separator, so setting the extension of a.bc/
to z yields a.z instead of a.b.z to match std::path (#67). when set_extension is given an empty extension, so
foo. becomes foo to match std::pathfor<'enc> binder from the Encoding bounds on Iter and
Ancestorswasm32-wasip2 fixes from 0.12.4Fix the build on stable wasm32-wasip2, broken since 0.12.1 by an unconditional #![feature(wasip2)]
wasm32-wasip2, broken since 0.12.1 by an
unconditional #![feature(wasip2)] (#71)OsStr and OsString conversions on wasm32-wasip2 behind the new
nightly-wasip2 feature, which requires a nightly compiler (#72)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Remove AsRef > for Cow<[u8]> and AsRef > for Cow as they conflict with other libraries by @Its-Just-Nans in https://github.com/chipsenkbeil/typed-path
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.12.2...v0.12.3
Add proper license files to the repo by @sugoi1 in https://github.com/chipsenkbeil/typed-path/pull/58
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.12.1...v0.12.2
fix: enable wasip2 feature for wasm32-wasip2 target by @cdmurph32 in https://github.com/chipsenkbeil/typed-path/pull/57
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.12.0...v0.12.1
std::io on wasm targets where the absolutize
function (which uses io) is not available (#57)Fix type reference for parent() methods mentioned in #44
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.11.0...v0.12.0
Lift static restriction for Path methods by @fominok in https://github.com/chipsenkbeil/typed-path/pull/46
Encoding and Utf8Encoding traits by @fominok in https://github.com/chipsenkbeil/typed-path/pull/47As a consequence of #47, this bumps the minimum Rust version to 1.65.0.
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.10.0...v0.11.0
Encoding and Utf8Encoding traits as GATs introduced
in Rust 1.65.0 enable us to relax this requirement (#47)dtolnay/rust-toolchain to fix issues where minimum version of Rust
wasn't being applied in tests (#48)Add PlatformEncoding and Utf8PlatformEncoding structs that mirror the functionality of NativeEncoding and Utf8NativeEncoding respectively, but as dist
PlatformEncoding and Utf8PlatformEncoding structs that mirror the
functionality of NativeEncoding and Utf8NativeEncoding respectively, but
as distinct structs instead of type aliases.PlatformPath and PlatformPathBuf type aliases that use PlatformEncoding.Utf8PlatformPath and Utf8PlatformPathBuf type aliases that use Utf8PlatformEncoding.AsRef<ffi::OsStr> for Utf8Path and Utf8PathBuf.TryAsRef<Utf8Path> for ffi::OsStr and ffi::OsString.From<Utf8PathBuf> for ffi::OsString.TryAsRef<std::path::Path> for Path<T>.TryAsRef<Path<T>> for std::path::Path.TryAsRef<std::path::Path> for TypedPath.TryAsRef<std::path::Path> for Utf8TypedPath.TryFrom<Utf8TypedPathBuf> for std::path::PathBuf.TryFrom<Utf8TypedPathBuf> for std::path::PathBuf.From<Utf8UnixPathBuf> for std::path::PathBuf.From<Utf8WindowsPathBuf> for std::path::PathBuf.Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.9.3...v0.10.0
Change lib.rs permissions to remove execution by @danielmellado in https://github.com/chipsenkbeil/typed-path/pull/33
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.9.2...v0.9.3
Fix `TypedPathBuf::windows()` and `Utf8TypedPathBuf::windows()` to properly return an instance of `WindowsPathBuf` and `Utf8WindowsPathBuf` respective
TypedPathBuf::windows() and Utf8TypedPathBuf::windows() to properly return an instance of WindowsPathBuf and Utf8WindowsPathBuf respectively. Before this fix, the function instead returned a Unix path wrapper. (by @vnghia in https://github.com/chipsenkbeil/typed-path/pull/30)rust-version in Cargo.tomlFull Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.9.1...v0.9.2
windows() function of TypedPathBuf and Utf8TypedPathBuf to properly
return an instance of WindowsPathBuf and Utf8WindowsPathBuf respectively.
Before this fix, the function instead returned a Unix path wrapper.
(#30)rust-version.add back missing derives by @stevefan1999-personal in https://github.com/chipsenkbeil/typed-path/pull/27
Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.9.0...v0.9.1
Hash, PartialOrd, and Ord implementations for TypedPath and TypedPathBuf enumerations.Add typed-path versions for current_exe and temp_dir, including UTF8 variants by @simongoricar in https://github.com/chipsenkbeil/typed-path/pull/24
current_exe and temp_dir, including UTF8 variants by @simongoricar in https://github.com/chipsenkbeil/typed-path/pull/24Full Changelog: https://github.com/chipsenkbeil/typed-path/compare/v0.8.0...v0.9.0
current_exe and utf8_current_exe functions to the utils module to return native pathbufs wrapping the standard library paths.temp_dir and utf8_temp_dir functions to the utils module to return native pathbufs wrapping the standard library paths.Add push_checked function, which ensures that any path added to an existing PathBuf or TypedPathBuf must abide by the following rules:
push_checked function, which ensures that any path added to an existing PathBuf or TypedPathBuf must abide by the following rules:
C:.join_checked function, which ensures that any path joied with an existing path follows the rules of push_checkedwith_encoding_checked function to ensure that the resulting path from an encoding conversion is still validwith_unix_encoding_checked and with_windows_encoding_checked functions as shortcuts to with_encoding_checkedis_valid to Component and Utf8Component traits alongside Path and Utf8Path to indicate if a component/path is valid for the given encodingSupport wasm family for compilation
wasm family for compilationSupport no_std environments, when default-features = false is set for the crate
no_std environments, when default-features = false is set for the crateRefactor crate exports such that everything other than constants are now top-level exports
typed_path::unix::UnixComponent is now typed_path::UnixComponenttyped_path::unix::Utf8UnixComponent is now typed_path::Utf8UnixComponenttyped_path::windows::WindowsComponent is now typed_path::WindowsComponenttyped_path::windows::Utf8WindowsComponent is now typed_path::Utf8WindowsComponenttyped_path::windows::WindowsPrefix is now typed_path::WindowsPrefixtyped_path::windows::Utf8WindowsPrefix is now typed_path::Utf8WindowsPrefixconstants module, broken out by unix
and windows modules to house each set of constantsTypedPath and Utf8TypedPath now match the method signature of Path for
constructing self with ::new(...)Path and PathBuf have been ported over
to TypedPath and TypedPathBufstd::fmt::Display for Utf8UnixComponent,
Utf8WindowsComponent, and Utf8TypedComponentPartialEq<&str> and reverse for Utf8TypedPath and Utf8TypedPathBufAdd TypedPath, Utf8TypedPath, TypedPathBuf, and Utf8TypedPathBuf enums to support code that can operate on both Windows and Unix paths
TypedPath, Utf8TypedPath, TypedPathBuf, and Utf8TypedPathBuf enums to support code that can operate on both Windows and Unix pathsAdd From<&Utf8NativePath> for std::PathBuf
From<&Utf8NativePath> for std::path::PathBufAdd AsRef for Utf8NativePath and Utf8NativePathBuf
AsRef<std::path::Path> for Utf8NativePath and Utf8NativePathBufFrom<Utf8NativePathBuf> for std::path::PathBufrustfmt.toml to dictate formatting using cargo +nightly fmt --allAdd normalize method to Path and Utf8Path to support resolving . and .. across Windows and Unix encodings
normalize method to Path and Utf8Path to support resolving . and .. across Windows and Unix encodingsis_parent and is_current methods to Component and Utf8Component traits with implementations for both Unix and Windows component implementationsroot, parent, and current static methods to Component and Utf8Component traits to support creating the instances from genericsabsolutize to both normalize the path and - in the case of relative paths - prefix the path with the current working directorywith_encoding to Path and Utf8Path support converting between the Unix and Windows encoding typesutils::current_dir and utils::utf8_current_dir to retrieve the current working directory as either a PathBuf or Utf8PathBufwith_unix_encoding and with_windows_encoding to Path and Utf8Path support converting between the Unix and Windows encoding typeshas_unix_encoding and has_windows_encoding to Path and Utf8Path to detect explicit encodingsFix implementation of Display for Utf8Path to use underlying str Display instead of Debug
Display for Utf8Path to use underlying str Display instead of DebugFix joining of empty path with relative path resulting in absolute path when using UnixPath::join or Utf8UnixPath::join
UnixPath::join or Utf8UnixPath::join (#6)Add Clone implementation for Box > and Box >
Clone implementation for Box<Path<T>> and Box<Utf8Path<T>>Clone implementation for PathBuf<T> and Utf8PathBuf<T> requiring a
clone implementation for the encoding, which is not necessary
(#5)Debug implementation for Path<T>, Utf8Path<T>, PathBuf<T>, and
Utf8PathBuf<T> to no longer require debug implementation for encoding,
which is not necessarylabel method to encoding implementations, used for debugging purposesUpdate README with more UTF8 examples and add proper testing of README examples via doctest
NOTE: This is binary-equivalent to v0.2.0 and only serves as a release to update the documentation shown in crates.io
Added UTF-8 variants of Path, PathBuf, Components, Component, and other data structures to support str versus [u8]
Path, PathBuf, Components, Component, and other data structures to support str versus [u8]Clone, Debug, Display, and Sized on Encoding and subsequent implementations UnixEncoding and WindowsEncodingInitial release of the library!
Initial release of the library!
One column per quarter.