camino 1.1.0
github-actions
released this
11 Aug 20:54
·
51 commits
to main
since this release
Added
- New methods, mirroring those in recent versions of Rust:
Utf8Path::try_exists
checks whether a path exists. Note that whilestd::path::Path
only provides this method for Rust 1.58 and above,camino
backfills the method for all Rust versions it supports.Utf8PathBuf::shrink_to
shrinks aUtf8PathBuf
to a given size. This was added in, and is gated on, Rust 1.56+.Utf8PathBuf::try_reserve
andUtf8PathBuf::try_reserve_exact
implement fallible allocations. These were added in, and are gated on, Rust 1.63+.
- A number of
#[must_use]
annotations to APIs, mirroring those added toPath
andPathBuf
in recent versions of Rust. The minor version bump is due to this change.