Bump textwrap from 0.14.2 to 0.15.0
Bumps textwrap from 0.14.2 to 0.15.0.
Release notes
Sourced from textwrap's releases.
textwrap-0.15.0
Version 0.15.0 (2022-02-27)
This is a major feature release with two main changes:
#421: Use
f64instead ofusizefor fragment widths.This fixes problems with overflows in the internal computations of
wrap_optimal_fitwhen fragments (words) or line lengths had extreme values, such asusize::MAX.#438: Simplify
Optionsby removing generic type parameters.This change removes the new generic parameters introduced in version 0.14, as well as the original
WrapSplitterparameter which has been present since very early versions.The result is a simplification of function and struct signatures across the board. So what used to be
let options: Options< wrap_algorithms::FirstFit, word_separators::AsciiSpace, word_splitters::HyphenSplitter, > = Options::new(80);if types are fully written out, is now simply
let options: Options<'_> = Options::new(80);The anonymous lifetime represent the lifetime of the
initial_indentandsubsequent_indentstrings. The change is nearly performance neutral (a 1-2% regression).Smaller improvements and changes:
- #404: Make documentation for short last-line penalty more precise.
- #405: Cleanup and simplify
Optionsdocstring.- #411: Default to
OptimalFitin interactive example.- #415: Add demo program to help compute binary sizes.
- #423: Add fuzz tests with fully arbitrary fragments.
- #424: Change
wrap_optimal_fitpenalties to non-negative numbers.- #430: Add
debug-wordsexample.- #432: Use precise dependency versions in Cargo.toml.
Changelog
Sourced from textwrap's changelog.
Version 0.15.0 (2022-02-27)
This is a major feature release with two main changes:
#421: Use
f64instead ofusizefor fragment widths.This fixes problems with overflows in the internal computations of
wrap_optimal_fitwhen fragments (words) or line lenghts had extreme values, such asusize::MAX.#438: Simplify
Optionsby removing generic type parameters.This change removes the new generic parameters introduced in version 0.14, as well as the original
WrapSplitterparameter which has been present since very early versions.The result is a simplification of function and struct signatures across the board. So what used to be
let options: Options< wrap_algorithms::FirstFit, word_separators::AsciiSpace, word_splitters::HyphenSplitter, > = Options::new(80);if types are fully written out, is now simply
let options: Options<'_> = Options::new(80);The anonymous lifetime represent the lifetime of the
initial_indentandsubsequent_indentstrings. The change is nearly performance neutral (a 1-2% regression).Smaller improvements and changes:
... (truncated)
Commits
559e07aMerge pull request #444 from mgeisler/release-0.15.007c6cd8Fixcargo publisherror due to examples without path6fa2cd8Merge pull request #443 from mgeisler/release-0.15.03042ff4Bump version to 0.15.09cc554eUpdate changelog for version 0.15.00f6091dAdd dependency graph for version 0.15.059c9fb3Merge pull request #442 from mgeisler/revert-single-expr-functions99154aeRevert "Put single-expression functions on a single line"265ba9aMerge pull request #441 from mgeisler/update-binary-sizesbca5408Update binary sizes for Rust 1.59- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Looks like textwrap is up-to-date now, so this is no longer needed.