Skip to content

Releases: chipsenkbeil/typed-path

v0.12.0

05 Oct 02:42
8f6f9e7

Choose a tag to compare

What's Changed

  • Fix type reference for parent() methods mentioned in #44
  • Refactor utils to return platform paths instead of native paths
  • Expose native and platform modules only when unix or windows by @AlexCharlton in #51
  • Fix for platforms not supporting atomic loads by @Oakchris1955 in #52
  • Update to be compliant with Rust Clippy 1.90.0

New Contributors

Full Changelog: v0.11.0...v0.12.0

v0.11.0

25 Apr 15:27
c6e1022

Choose a tag to compare

What's Changed

  • Lift static restriction for Path methods by @fominok in #46
  • Switch to dtolnay/rust-toolchain by @chipsenkbeil in #48
  • Remove lifetime from Encoding and Utf8Encoding traits by @fominok in #47

As a consequence of #47, this bumps the minimum Rust version to 1.65.0.

New Contributors

Full Changelog: v0.10.0...v0.11.0

v0.10.0

01 Dec 22:20
d3e0948

Choose a tag to compare

What's Changed

  • Add PlatformEncoding and Utf8PlatformEncoding structs that mirror the
    functionality of NativeEncoding and Utf8NativeEncoding respectively, but
    as distinct structs instead of type aliases.
  • Add PlatformPath and PlatformPathBuf type aliases that use PlatformEncoding.
  • Add Utf8PlatformPath and Utf8PlatformPathBuf type aliases that use Utf8PlatformEncoding.
  • Add AsRef<ffi::OsStr> for Utf8Path and Utf8PathBuf.
  • Add TryAsRef<Utf8Path> for ffi::OsStr and ffi::OsString.
  • Add From<Utf8PathBuf> for ffi::OsString.
  • Remove implementation of TryAsRef<std::path::Path> for Path<T>.
  • Remove implementation of TryAsRef<Path<T>> for std::path::Path.
  • Remove implementation of TryAsRef<std::path::Path> for TypedPath.
  • Remove implementation of TryAsRef<std::path::Path> for Utf8TypedPath.
  • Remove implementation of TryFrom<Utf8TypedPathBuf> for std::path::PathBuf.
  • Remove implementation of TryFrom<Utf8TypedPathBuf> for std::path::PathBuf.
  • Remove implementation of From<Utf8UnixPathBuf> for std::path::PathBuf.
  • Remove implementation of From<Utf8WindowsPathBuf> for std::path::PathBuf.

Full Changelog: v0.9.3...v0.10.0

v0.9.3

15 Oct 18:47
08cae85

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.2...v0.9.3

v0.9.2

15 Sep 18:09
7f380aa

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.1...v0.9.2

v0.9.1

16 Jul 15:49
02856a9

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.0...v0.9.1

v0.9.0

15 Jun 16:47
7f7879f

Choose a tag to compare

What's Changed

  • Add typed-path versions for current_exe and temp_dir, including UTF8 variants by @simongoricar in #24

New Contributors

Full Changelog: v0.8.0...v0.9.0

typed-path 0.8.0

25 Feb 03:01
2eadf1b

Choose a tag to compare

Notable Changes

  • Add push_checked function, which ensures that any path added to an existing PathBuf or TypedPathBuf must abide by the following rules:
    1. It cannot be an absolute path. Only relative paths allowed.
    2. In the case of Windows, it cannot start with a prefix like C:.
    3. All normal components of the path must contain only valid characters.
    4. If parent directory (..) components are present, they must not result in a path traversal attack (impacting the current path).
  • Add join_checked function, which ensures that any path joied with an existing path follows the rules of push_checked
  • Add with_encoding_checked function to ensure that the resulting path from an encoding conversion is still valid
  • Add with_unix_encoding_checked and with_windows_encoding_checked functions as shortcuts to with_encoding_checked
  • Add is_valid to Component and Utf8Component traits alongside Path and Utf8Path to indicate if a component/path is valid for the given encoding

typed-path 0.7.1

16 Feb 04:22
e356c5a

Choose a tag to compare

Notable Changes

  • Support wasm family for compilation

typed-path 0.7.0

04 Nov 22:15
2423bb4

Choose a tag to compare

Notable Changes

  • Support no_std environments, when default-features = false is set for the crate