Skip to content

Releases: chipsenkbeil/typed-path

typed-path 0.4.1

18 Sep 03:00
e3a8d1f
Compare
Choose a tag to compare

Notable Changes

  • Add AsRef<std::path::Path> for Utf8NativePath and Utf8NativePathBuf
  • Add From<Utf8NativePathBuf> for std::path::PathBuf
  • Add rustfmt.toml to dictate formatting using cargo +nightly fmt --all

typed-path 0.4.0

23 Aug 07:13
81fb28d
Compare
Choose a tag to compare

Notable Changes

  • Add normalize method to Path and Utf8Path to support resolving . and .. across Windows and Unix encodings
  • Add is_parent and is_current methods to Component and Utf8Component traits with implementations for both Unix and Windows component implementations
  • Add root, parent, and current static methods to Component and Utf8Component traits to support creating the instances from generics
  • Add absolutize to both normalize the path and - in the case of relative paths - prefix the path with the current working directory
  • Add with_encoding to Path and Utf8Path support converting between the Unix and Windows encoding types
  • Add utils::current_dir and utils::utf8_current_dir to retrieve the current working directory as either a PathBuf or Utf8PathBuf
  • Add with_unix_encoding and with_windows_encoding to Path and Utf8Path support converting between the Unix and Windows encoding types
  • Add has_unix_encoding and has_windows_encoding to Path and Utf8Path to detect explicit encodings

typed-path v0.3.2

27 Mar 18:43
Compare
Choose a tag to compare

Notable Changes

  • Fix implementation of Display for Utf8Path to use underlying str Display instead of Debug

typed-path 0.3.1

15 Mar 05:13
38aeefd
Compare
Choose a tag to compare

Notable Changes

  • Fix joining of empty path with relative path resulting in absolute path when using UnixPath::join or Utf8UnixPath::join (#6)

typed-path 0.3.0

15 Feb 03:50
852c4e8
Compare
Choose a tag to compare

Notable Changes

  • Add Clone implementation for Box<Path<T>> and Box<Utf8Path<T>>
  • Fix Clone implementation for PathBuf<T> and Utf8PathBuf<T> requiring a
    clone implementation for the encoding, which is not necessary
    (#5)
  • Update Debug implementation for Path<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

12 Dec 22:00
7fb0324
Compare
Choose a tag to compare

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

12 Dec 21:58
1ac8d82
Compare
Choose a tag to compare

Notable Changes

  • Added UTF-8 variants of Path, PathBuf, Components, Component, and other data structures to support str versus [u8]
  • Remove requirements of Clone, Debug, Display, and Sized on Encoding and subsequent implementations UnixEncoding and WindowsEncoding

typed-path 0.1.0

25 Aug 03:17
3657ef9
Compare
Choose a tag to compare

First release of the library!