Releases: chipsenkbeil/typed-path
Releases · chipsenkbeil/typed-path
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 ofWindowsPathBuf
andUtf8WindowsPathBuf
respectively. 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-version
in 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_exe
andtemp_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_checked
function, which ensures that any path added to an existingPathBuf
orTypedPathBuf
must 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_checked
function, which ensures that any path joied with an existing path follows the rules ofpush_checked
- Add
with_encoding_checked
function to ensure that the resulting path from an encoding conversion is still valid - Add
with_unix_encoding_checked
andwith_windows_encoding_checked
functions as shortcuts towith_encoding_checked
- Add
is_valid
toComponent
andUtf8Component
traits alongsidePath
andUtf8Path
to indicate if a component/path is valid for the given encoding
typed-path 0.7.1
Notable Changes
- Support
wasm
family for compilation
typed-path 0.7.0
Notable Changes
- Support
no_std
environments, whendefault-features = false
is set for the crate
typed-path v0.6.0
Notable Changes
- Refactor crate exports such that everything other than constants are now
top-level exportstyped_path::unix::UnixComponent
is nowtyped_path::UnixComponent
typed_path::unix::Utf8UnixComponent
is nowtyped_path::Utf8UnixComponent
typed_path::windows::WindowsComponent
is nowtyped_path::WindowsComponent
typed_path::windows::Utf8WindowsComponent
is nowtyped_path::Utf8WindowsComponent
typed_path::windows::WindowsPrefix
is nowtyped_path::WindowsPrefix
typed_path::windows::Utf8WindowsPrefix
is nowtyped_path::Utf8WindowsPrefix
- Constants are now located within the
constants
module, broken out byunix
andwindows
modules to house each set of constants TypedPath
andUtf8TypedPath
now match the method signature ofPath
for
constructing self with::new(...)
- Majority of methods available for
Path
andPathBuf
have been ported over
toTypedPath
andTypedPathBuf
- Implement
std::fmt::Display
forUtf8UnixComponent
,
Utf8WindowsComponent
, andUtf8TypedComponent
- Implement
PartialEq<&str>
and reverse forUtf8TypedPath
andUtf8TypedPathBuf
typed-path 0.5.0
Notable changes
- Add
TypedPath
,Utf8TypedPath
,TypedPathBuf
, andUtf8TypedPathBuf
enums to support code that can operate on both Windows and Unix paths
typed-path 0.4.2
Notable Changes
- Add
From<&Utf8NativePath>
forstd::path::PathBuf