Skip to content

Commit 3c052a0

Browse files
authored
Merge pull request #482 from mgeisler/release-0.16.0
Release 0.16.0
2 parents fffe80c + 72070e4 commit 3c052a0

File tree

5 files changed

+48
-16
lines changed

5 files changed

+48
-16
lines changed

CHANGELOG.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,33 @@
33
This file lists the most important changes made in each release of
44
`textwrap`.
55

6-
## Version 0.15.1 (2022-09-15)
7-
8-
This release which fixes crashes in `unfill` and `refill`. It also
9-
adds a new option to make the line endings (`\n` or `\r\n`)
10-
configurable:
11-
12-
* [#448](https://github.com/mgeisler/textwrap/pull/448): Migrate to
13-
the Rust 2021 edition.
6+
## Version 0.16.0 (2022-10-23)
7+
8+
This release marks `Options` as `non_exhaustive` and extends it to
9+
make line endings configurable, it adds new fast paths to `fill` and
10+
`wrap`, and it fixes crashes in `unfill` and `refill`.
11+
12+
* [#480](https://github.com/mgeisler/textwrap/pull/480): Mark
13+
`Options` as `non_exhaustive`. This will allow us to extend the
14+
struct in the future without breaking backwards compatibility.
15+
* [#478](https://github.com/mgeisler/textwrap/pull/478): Add fast
16+
paths to `fill` and `wrap`. This makes the functions 10-25 times
17+
faster when the no wrapping is needed.
18+
* [#468](https://github.com/mgeisler/textwrap/pull/468): Fix `refill`
19+
to add back correct line ending.
20+
* [#467](https://github.com/mgeisler/textwrap/pull/467): Fix crashes
21+
in `unfill` and `refill`.
1422
* [#458](https://github.com/mgeisler/textwrap/pull/458): Test with
1523
Rust 1.56 (first compiler release with support for Rust 2021).
1624
* [#454](https://github.com/mgeisler/textwrap/pull/454): Make line
1725
endings configurable.
18-
* [#467](https://github.com/mgeisler/textwrap/pull/467): Fix `unfill`
19-
and `refill` crashes.
20-
* [#468](https://github.com/mgeisler/textwrap/pull/468): Fix `refill`
21-
to add back correct line ending.
26+
* [#448](https://github.com/mgeisler/textwrap/pull/448): Migrate to
27+
the Rust 2021 edition.
28+
29+
## Version 0.15.1 (2022-09-15)
30+
31+
This release was yanked since it accidentally broke backwards
32+
compatibility with 0.15.0.
2233

2334
## Version 0.15.0 (2022-02-27)
2435

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "textwrap"
3-
version = "0.15.1"
3+
version = "0.16.0"
44
authors = ["Martin Geisler <[email protected]>"]
55
description = "Library for word wrapping, indenting, and dedenting strings. Has optional support for Unicode and emojis as well as machine hyphenation."
66
documentation = "https://docs.rs/textwrap/"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ drawn on a [HTML5 canvas using WebAssembly][wasm-demo].
1616
To use the textwrap crate, add this to your `Cargo.toml` file:
1717
```toml
1818
[dependencies]
19-
textwrap = "0.15"
19+
textwrap = "0.16"
2020
```
2121

2222
By default, this enables word wrapping with support for Unicode

images/textwrap-0.16.0.svg

Lines changed: 21 additions & 0 deletions
Loading

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
//! The full dependency graph, where dashed lines indicate optional
113113
//! dependencies, is shown below:
114114
//!
115-
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.15.1.svg">
115+
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.16.0.svg">
116116
//!
117117
//! ## Default Features
118118
//!
@@ -193,7 +193,7 @@
193193
//! [terminal_size]: https://docs.rs/terminal_size/
194194
//! [hyphenation]: https://docs.rs/hyphenation/
195195
196-
#![doc(html_root_url = "https://docs.rs/textwrap/0.15.1")]
196+
#![doc(html_root_url = "https://docs.rs/textwrap/0.16.0")]
197197
#![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210
198198
#![deny(missing_docs)]
199199
#![deny(missing_debug_implementations)]

0 commit comments

Comments
 (0)