Skip to content

Commit

Permalink
Merge pull request #482 from mgeisler/release-0.16.0
Browse files Browse the repository at this point in the history
Release 0.16.0
  • Loading branch information
mgeisler authored Oct 23, 2022
2 parents fffe80c + 72070e4 commit 3c052a0
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 16 deletions.
35 changes: 23 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "textwrap"
version = "0.15.1"
version = "0.16.0"
authors = ["Martin Geisler <martin@geisler.net>"]
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/"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions images/textwrap-0.16.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
//! The full dependency graph, where dashed lines indicate optional
//! dependencies, is shown below:
//!
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.15.1.svg">
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.16.0.svg">
//!
//! ## Default Features
//!
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit 3c052a0

Please sign in to comment.