Debian Codegraph @

third_party/rust/camino/CHANGELOG.md

raw
1 # Changelog
2
3 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
6 ## [1.1.2] - 2022-08-12
7
8 ### Added
9
10 - New convenience methods [`FromPathBufError::into_io_error`] and
11 [`FromPathError::into_io_error`].
12
13 ## [1.1.1] - 2022-08-12
14
15 ### Fixed
16
17 - Fixed a build regression on older nightlies in the 1.63 series
18 ([#22](https://github.com/camino-rs/camino/issues/22)).
19 - Documentation fixes.
20
21 ## [1.1.0] - 2022-08-11
22
23 ### Added
24
25 - New methods, mirroring those in recent versions of Rust:
26 - `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.
27 - `Utf8PathBuf::shrink_to` shrinks a `Utf8PathBuf` to a given size. This was added in, and is gated on, Rust 1.56+.
28 - `Utf8PathBuf::try_reserve` and `Utf8PathBuf::try_reserve_exact` implement fallible allocations. These were added in, and are gated on, Rust 1.63+.
29 - 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.
30
31 ## [1.0.9] - 2022-05-19
32
33 ### Fixed
34
35 - Documentation fixes.
36
37 ## [1.0.8] - 2022-05-09
38
39 ### Added
40
41 - New methods `canonicalize_utf8`, `read_link_utf8` and `read_dir_utf8` return `Utf8PathBuf`s, erroring out if a resulting path is not valid UTF-8.
42 - New feature `proptest1` introduces proptest `Arbitrary` impls for `Utf8PathBuf` and
43 `Box<Utf8Path>` ([#18], thanks [mcronce](https://github.com/mcronce) for your first contribution!)
44
45 [#18]: https://github.com/camino-rs/camino/pull/18
46
47 ## [1.0.7] - 2022-01-16
48
49 ### Added
50
51 - `Utf8Path::is_symlink` checks whether a path is a symlink. Note that while `std::path::Path` only
52 provides this method for version 1.58 and above, `camino` backfills the method for all Rust versions
53 it supports.
54
55 ### Changed
56
57 - Update repository links to new location [camino-rs/camino](https://github.com/camino-rs/camino).
58 - Update `structopt` example to clap 3's builtin derive feature.
59 (camino continues to work with structopt as before.)
60
61 ## [1.0.6] - 2022-01-16
62
63 (This release was yanked due to a publishing issue.)
64
65 ## [1.0.5] - 2021-07-27
66
67 ### Added
68
69 - `Utf8PathBuf::into_std_path_buf` converts a `Utf8PathBuf` to a `PathBuf`; equivalent to the
70 `From<Utf8PathBuf> for PathBuf` impl, but may aid in type inference.
71 - `Utf8Path::as_std_path` converts a `Utf8Path` to a `Path`; equivalent to the
72 `AsRef<&Path> for &Utf8Path` impl, but may aid in type inference.
73
74 ## [1.0.4] - 2021-03-19
75
76 ### Fixed
77
78 - `Hash` impls for `Utf8PathBuf` and `Utf8Path` now match as required by the `Borrow` contract ([#9]).
79
80 [#9]: https://github.com/camino-rs/camino/issues/9
81
82 ## [1.0.3] - 2021-03-11
83
84 ### Added
85
86 - `TryFrom<PathBuf> for Utf8PathBuf` and `TryFrom<&Path> for &Utf8Path`, both of which return new error types ([#6]).
87 - `AsRef<Utf8Path>`, `AsRef<Path>`, `AsRef<str>` and `AsRef<OsStr>` impls for `Utf8Components`, `Utf8Component` and
88 `Iter`.
89
90 [#6]: https://github.com/camino-rs/camino/issues/6
91
92 ## [1.0.2] - 2021-03-02
93
94 ### Added
95
96 - `From` impls for converting a `&Utf8Path` or a `Utf8PathBuf` into `Box<Path>`, `Rc<Path>`, `Arc<Path>` and `Cow<'a, Path>`.
97 - `PartialEq` and `PartialOrd` implementations comparing `Utf8Path` and `Utf8PathBuf` with `Path`, `PathBuf` and its
98 variants, and comparing `OsStr`, `OsString` and its variants.
99
100 ## [1.0.1] - 2021-02-25
101
102 ### Added
103
104 - More `PartialEq` and `PartialOrd` implementations.
105 - MSRV lowered to 1.34.
106
107 ## [1.0.0] - 2021-02-23
108
109 Initial release.
110
111 [1.1.2]: https://github.com/camino-rs/camino/releases/tag/camino-1.1.2
112 [1.1.1]: https://github.com/camino-rs/camino/releases/tag/camino-1.1.1
113 [1.1.0]: https://github.com/camino-rs/camino/releases/tag/camino-1.1.0
114 [1.0.9]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.9
115 [1.0.8]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.8
116 [1.0.7]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.7
117 [1.0.6]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.6
118 [1.0.5]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.5
119 [1.0.4]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.4
120 [1.0.3]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.3
121 [1.0.2]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.2
122 [1.0.1]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.1
123 [1.0.0]: https://github.com/camino-rs/camino/releases/tag/camino-1.0.0