Skip to content

camino 1.1.0

Compare
Choose a tag to compare
@github-actions 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 while std::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 a Utf8PathBuf to a given size. This was added in, and is gated on, Rust 1.56+.
    • Utf8PathBuf::try_reserve and Utf8PathBuf::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 to Path and PathBuf in recent versions of Rust. The minor version bump is due to this change.