textwrap breaking changes
textwrap 0.16.0 (October 23, 2022) is its newest release with breaking changes, 2 of them. The first: Behavior changed refill. Every breaking API change we have recorded in textwrap on crates.io: 30 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.16.4, released September 13, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
textwrap 0.16.0 breaking changes
- Behavior changed
refill
refill adds back a different line ending than before, so output that depends on the old line ending changes. github.com - Signature changed
Options
Options is now non_exhaustive, so code that builds it with a struct literal or matches all its fields will no longer compile. github.com
textwrap 0.15.0 breaking changes
- Removed
textwrap::Options::with_word_splitter
textwrap::Options::with_word_splitter was removed in textwrap 0.15.0 crates.io - Removed
textwrap::word_separators
textwrap::word_separators was removed in textwrap 0.15.0 crates.io - Removed
textwrap::word_splitters::HyphenSplitter
textwrap::word_splitters::HyphenSplitter was removed in textwrap 0.15.0 crates.io - Removed
textwrap::word_splitters::NoHyphenation
textwrap::word_splitters::NoHyphenation was removed in textwrap 0.15.0 crates.io - Removed
textwrap::wrap_algorithms::FirstFit
textwrap::wrap_algorithms::FirstFit was removed in textwrap 0.15.0 crates.io - Removed
textwrap::wrap_algorithms::OptimalFit
textwrap::wrap_algorithms::OptimalFit was removed in textwrap 0.15.0 crates.io - Signature changed
textwrap::core::Fragment::penalty_width
Was fn penalty_width(&self) -> usize; now fn penalty_width(&self) -> f64. crates.io - Signature changed
textwrap::core::Fragment::whitespace_width
Was fn whitespace_width(&self) -> usize; now fn whitespace_width(&self) -> f64. crates.io - Signature changed
textwrap::core::Fragment::width
Was fn width(&self) -> usize; now fn width(&self) -> f64. crates.io - Signature changed
textwrap::fill
Was fn fill<'a, WrapAlgo, WordSep, WordSplit, Opt>(text: &str, width_or_options: Opt) -> String where WrapAlgo: wrap_algorithms::WrapAlgorithm, WordSep: word_separators::WordSeparator, WordSplit: word_splitters::WordSplitter, Opt... crates.io
And 18 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.