Releases: chipsenkbeil/typed-path
Releases · chipsenkbeil/typed-path
typed-path 0.4.1
Notable Changes
- Add
AsRef<std::path::Path>
forUtf8NativePath
andUtf8NativePathBuf
- Add
From<Utf8NativePathBuf>
forstd::path::PathBuf
- Add
rustfmt.toml
to dictate formatting usingcargo +nightly fmt --all
typed-path 0.4.0
Notable Changes
- Add
normalize
method toPath
andUtf8Path
to support resolving.
and..
across Windows and Unix encodings - Add
is_parent
andis_current
methods toComponent
andUtf8Component
traits with implementations for both Unix and Windows component implementations - Add
root
,parent
, andcurrent
static methods toComponent
andUtf8Component
traits to support creating the instances from generics - Add
absolutize
to bothnormalize
the path and - in the case of relative paths - prefix the path with the current working directory - Add
with_encoding
toPath
andUtf8Path
support converting between the Unix and Windows encoding types - Add
utils::current_dir
andutils::utf8_current_dir
to retrieve the current working directory as either aPathBuf
orUtf8PathBuf
- Add
with_unix_encoding
andwith_windows_encoding
toPath
andUtf8Path
support converting between the Unix and Windows encoding types - Add
has_unix_encoding
andhas_windows_encoding
toPath
andUtf8Path
to detect explicit encodings
typed-path v0.3.2
Notable Changes
- Fix implementation of
Display
forUtf8Path
to use underlying strDisplay
instead ofDebug
typed-path 0.3.1
Notable Changes
- Fix joining of empty path with relative path resulting in absolute path when using
UnixPath::join
orUtf8UnixPath::join
(#6)
typed-path 0.3.0
Notable Changes
- Add
Clone
implementation forBox<Path<T>>
andBox<Utf8Path<T>>
- Fix
Clone
implementation forPathBuf<T>
andUtf8PathBuf<T>
requiring a
clone implementation for the encoding, which is not necessary
(#5) - Update
Debug
implementation forPath<T>
,Utf8Path<T>
,PathBuf<T>
, and
Utf8PathBuf<T>
to no longer require debug implementation for encoding,
which is not necessary - Add
label
method to encoding implementations, used for debugging purposes
typed-path 0.2.1
Notable Changes
- Update 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
typed-path 0.2.0
Notable Changes
- Added UTF-8 variants of
Path
,PathBuf
,Components
,Component
, and other data structures to supportstr
versus[u8]
- Remove requirements of
Clone
,Debug
,Display
, andSized
onEncoding
and subsequent implementationsUnixEncoding
andWindowsEncoding
typed-path 0.1.0
First release of the library!