Releases: chipsenkbeil/typed-path
Releases · chipsenkbeil/typed-path
v0.12.0
What's Changed
- Fix type reference for parent() methods mentioned in #44
- Refactor utils to return platform paths instead of native paths
- Expose native and platform modules only when unix or windows by @AlexCharlton in #51
- Fix for platforms not supporting atomic loads by @Oakchris1955 in #52
- Update to be compliant with Rust Clippy 1.90.0
New Contributors
- @AlexCharlton made their first contribution in #51
- @Oakchris1955 made their first contribution in #52
Full Changelog: v0.11.0...v0.12.0
v0.11.0
What's Changed
- Lift static restriction for Path methods by @fominok in #46
- Switch to dtolnay/rust-toolchain by @chipsenkbeil in #48
- Remove lifetime from
EncodingandUtf8Encodingtraits by @fominok in #47
As a consequence of #47, this bumps the minimum Rust version to 1.65.0.
New Contributors
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- Add
PlatformEncodingandUtf8PlatformEncodingstructs that mirror the
functionality ofNativeEncodingandUtf8NativeEncodingrespectively, but
as distinct structs instead of type aliases. - Add
PlatformPathandPlatformPathBuftype aliases that usePlatformEncoding. - Add
Utf8PlatformPathandUtf8PlatformPathBuftype aliases that useUtf8PlatformEncoding. - Add
AsRef<ffi::OsStr>forUtf8PathandUtf8PathBuf. - Add
TryAsRef<Utf8Path>forffi::OsStrandffi::OsString. - Add
From<Utf8PathBuf>forffi::OsString. - Remove implementation of
TryAsRef<std::path::Path>forPath<T>. - Remove implementation of
TryAsRef<Path<T>>forstd::path::Path. - Remove implementation of
TryAsRef<std::path::Path>forTypedPath. - Remove implementation of
TryAsRef<std::path::Path>forUtf8TypedPath. - Remove implementation of
TryFrom<Utf8TypedPathBuf>forstd::path::PathBuf. - Remove implementation of
TryFrom<Utf8TypedPathBuf>forstd::path::PathBuf. - Remove implementation of
From<Utf8UnixPathBuf>forstd::path::PathBuf. - Remove implementation of
From<Utf8WindowsPathBuf>forstd::path::PathBuf.
Full Changelog: v0.9.3...v0.10.0
v0.9.3
What's Changed
- Change lib.rs permissions to remove execution by @danielmellado in #33
New Contributors
- @danielmellado made their first contribution in #33
Full Changelog: v0.9.2...v0.9.3
v0.9.2
What's Changed
- Fix
TypedPathBuf::windows()andUtf8TypedPathBuf::windows()to properly return an instance ofWindowsPathBufandUtf8WindowsPathBufrespectively. Before this fix, the function instead returned a Unix path wrapper. (by @vnghia in #30) - Address clippy warnings and update some metadata by @chipsenkbeil in #31
- Minimum Rust version of 1.58.1 is now specified via
rust-versionin Cargo.toml
New Contributors
Full Changelog: v0.9.1...v0.9.2
v0.9.1
What's Changed
- add back missing derives by @stevefan1999-personal in #27
New Contributors
- @stevefan1999-personal made their first contribution in #27
Full Changelog: v0.9.0...v0.9.1
v0.9.0
What's Changed
- Add typed-path versions for
current_exeandtemp_dir, including UTF8 variants by @simongoricar in #24
New Contributors
- @simongoricar made their first contribution in #24
Full Changelog: v0.8.0...v0.9.0
typed-path 0.8.0
Notable Changes
- Add
push_checkedfunction, which ensures that any path added to an existingPathBuforTypedPathBufmust abide by the following rules:- It cannot be an absolute path. Only relative paths allowed.
- In the case of Windows, it cannot start with a prefix like
C:. - All normal components of the path must contain only valid characters.
- If parent directory (..) components are present, they must not result in a path traversal attack (impacting the current path).
- Add
join_checkedfunction, which ensures that any path joied with an existing path follows the rules ofpush_checked - Add
with_encoding_checkedfunction to ensure that the resulting path from an encoding conversion is still valid - Add
with_unix_encoding_checkedandwith_windows_encoding_checkedfunctions as shortcuts towith_encoding_checked - Add
is_validtoComponentandUtf8Componenttraits alongsidePathandUtf8Pathto indicate if a component/path is valid for the given encoding
typed-path 0.7.1
Notable Changes
- Support
wasmfamily for compilation
typed-path 0.7.0
Notable Changes
- Support
no_stdenvironments, whendefault-features = falseis set for the crate