4.5 KiB
4.5 KiB
Changelog
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.2 - 2022-08-12
Added
- New convenience methods [
FromPathBufError::into_io_error] and [FromPathError::into_io_error].
1.1.1 - 2022-08-12
Fixed
- Fixed a build regression on older nightlies in the 1.63 series (#22).
- Documentation fixes.
1.1.0 - 2022-08-11
Added
- New methods, mirroring those in recent versions of Rust:
Utf8Path::try_existschecks whether a path exists. Note that whilestd::path::Pathonly provides this method for Rust 1.58 and above,caminobackfills the method for all Rust versions it supports.Utf8PathBuf::shrink_toshrinks aUtf8PathBufto a given size. This was added in, and is gated on, Rust 1.56+.Utf8PathBuf::try_reserveandUtf8PathBuf::try_reserve_exactimplement fallible allocations. These were added in, and are gated on, Rust 1.63+.
- A number of
#[must_use]annotations to APIs, mirroring those added toPathandPathBufin recent versions of Rust. The minor version bump is due to this change.
1.0.9 - 2022-05-19
Fixed
- Documentation fixes.
1.0.8 - 2022-05-09
Added
- New methods
canonicalize_utf8,read_link_utf8andread_dir_utf8returnUtf8PathBufs, erroring out if a resulting path is not valid UTF-8. - New feature
proptest1introduces proptestArbitraryimpls forUtf8PathBufandBox<Utf8Path>(#18, thanks mcronce for your first contribution!)
1.0.7 - 2022-01-16
Added
Utf8Path::is_symlinkchecks whether a path is a symlink. Note that whilestd::path::Pathonly provides this method for version 1.58 and above,caminobackfills the method for all Rust versions it supports.
Changed
- Update repository links to new location camino-rs/camino.
- Update
structoptexample to clap 3's builtin derive feature. (camino continues to work with structopt as before.)
1.0.6 - 2022-01-16
(This release was yanked due to a publishing issue.)
1.0.5 - 2021-07-27
Added
Utf8PathBuf::into_std_path_bufconverts aUtf8PathBufto aPathBuf; equivalent to theFrom<Utf8PathBuf> for PathBufimpl, but may aid in type inference.Utf8Path::as_std_pathconverts aUtf8Pathto aPath; equivalent to theAsRef<&Path> for &Utf8Pathimpl, but may aid in type inference.
1.0.4 - 2021-03-19
Fixed
Hashimpls forUtf8PathBufandUtf8Pathnow match as required by theBorrowcontract (#9).
1.0.3 - 2021-03-11
Added
TryFrom<PathBuf> for Utf8PathBufandTryFrom<&Path> for &Utf8Path, both of which return new error types (#6).AsRef<Utf8Path>,AsRef<Path>,AsRef<str>andAsRef<OsStr>impls forUtf8Components,Utf8ComponentandIter.
1.0.2 - 2021-03-02
Added
Fromimpls for converting a&Utf8Pathor aUtf8PathBufintoBox<Path>,Rc<Path>,Arc<Path>andCow<'a, Path>.PartialEqandPartialOrdimplementations comparingUtf8PathandUtf8PathBufwithPath,PathBufand its variants, and comparingOsStr,OsStringand its variants.
1.0.1 - 2021-02-25
Added
- More
PartialEqandPartialOrdimplementations. - MSRV lowered to 1.34.
1.0.0 - 2021-02-23
Initial release.