From 0734c2269144f193e15d665ee8cdd4b894b29913 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sun, 23 Oct 2022 19:17:03 +0000 Subject: [PATCH 1/3] Add dependency graph for version 0.16.0 --- images/textwrap-0.16.0.svg | 21 +++++++++++++++++++++ src/lib.rs | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 images/textwrap-0.16.0.svg diff --git a/images/textwrap-0.16.0.svg b/images/textwrap-0.16.0.svg new file mode 100644 index 00000000..bc234068 --- /dev/null +++ b/images/textwrap-0.16.0.svg @@ -0,0 +1,21 @@ + + + + +textwrap + +smawk + + + + + +unicode-linebreak + + + +unicode-width + + + + diff --git a/src/lib.rs b/src/lib.rs index 628f7918..931dc39e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -112,7 +112,7 @@ //! The full dependency graph, where dashed lines indicate optional //! dependencies, is shown below: //! -//! +//! //! //! ## Default Features //! From 6d16ab5947701b3cc3d418b1d4aa15500905d4ff Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sun, 23 Oct 2022 19:17:04 +0000 Subject: [PATCH 2/3] Update changelog for version 0.16.0 --- CHANGELOG.md | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac5ce64..5d0dd61e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,22 +3,33 @@ This file lists the most important changes made in each release of `textwrap`. -## Version 0.15.1 (2022-09-15) - -This release which fixes crashes in `unfill` and `refill`. It also -adds a new option to make the line endings (`\n` or `\r\n`) -configurable: - -* [#448](https://github.com/mgeisler/textwrap/pull/448): Migrate to - the Rust 2021 edition. +## Version 0.16.0 (2022-10-23) + +This release marks `Options` as `non_exhaustive` and extends it to +make line endings configurable, it adds new fast paths to `fill` and +`wrap`, and it fixes crashes in `unfill` and `refill`. + +* [#480](https://github.com/mgeisler/textwrap/pull/480): Mark + `Options` as `non_exhaustive`. This will allow us to extend the + struct in the future without breaking backwards compatibility. +* [#478](https://github.com/mgeisler/textwrap/pull/478): Add fast + paths to `fill` and `wrap`. This makes the functions 10-25 times + faster when the no wrapping is needed. +* [#468](https://github.com/mgeisler/textwrap/pull/468): Fix `refill` + to add back correct line ending. +* [#467](https://github.com/mgeisler/textwrap/pull/467): Fix crashes + in `unfill` and `refill`. * [#458](https://github.com/mgeisler/textwrap/pull/458): Test with Rust 1.56 (first compiler release with support for Rust 2021). * [#454](https://github.com/mgeisler/textwrap/pull/454): Make line endings configurable. -* [#467](https://github.com/mgeisler/textwrap/pull/467): Fix `unfill` - and `refill` crashes. -* [#468](https://github.com/mgeisler/textwrap/pull/468): Fix `refill` - to add back correct line ending. +* [#448](https://github.com/mgeisler/textwrap/pull/448): Migrate to + the Rust 2021 edition. + +## Version 0.15.1 (2022-09-15) + +This release was yanked since it accidentally broke backwards +compatibility with 0.15.0. ## Version 0.15.0 (2022-02-27) From 72070e4e71f99a788a8d58e8ada7b6396351b79b Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sun, 23 Oct 2022 19:17:53 +0000 Subject: [PATCH 3/3] Bump version to 0.16.0 --- Cargo.toml | 2 +- README.md | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5cdd0065..d5e44f2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "textwrap" -version = "0.15.1" +version = "0.16.0" authors = ["Martin Geisler "] description = "Library for word wrapping, indenting, and dedenting strings. Has optional support for Unicode and emojis as well as machine hyphenation." documentation = "https://docs.rs/textwrap/" diff --git a/README.md b/README.md index 9eeea079..cdf4eacf 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ drawn on a [HTML5 canvas using WebAssembly][wasm-demo]. To use the textwrap crate, add this to your `Cargo.toml` file: ```toml [dependencies] -textwrap = "0.15" +textwrap = "0.16" ``` By default, this enables word wrapping with support for Unicode diff --git a/src/lib.rs b/src/lib.rs index 931dc39e..ed346a2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -193,7 +193,7 @@ //! [terminal_size]: https://docs.rs/terminal_size/ //! [hyphenation]: https://docs.rs/hyphenation/ -#![doc(html_root_url = "https://docs.rs/textwrap/0.15.1")] +#![doc(html_root_url = "https://docs.rs/textwrap/0.16.0")] #![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210 #![deny(missing_docs)] #![deny(missing_debug_implementations)]