Skip to content

v1.1.0

Compare
Choose a tag to compare
@wilhelmagren wilhelmagren released this 05 May 11:52
· 1 commit to main since this release
95a9df7

Stable minor release 🔥⚡️

This release brings some performance enhancing changes, more efficient memory allocation, and some bug fixing.

Previously there existed a bug when truncating using the Alignment::Center mode and the truncate width was uneven. The truncated output became one item too short. This is fixed now.

Previously the output buffer was always allocated unless the source was to be truncated, even if the target width was the same as the original source. This allocation is moved to after the check if diff == 0, saving precious system calls! Run some benchmarks and compare previous release to this release to see improvements in action.

More tests implemented, see codecov for coverage reports.

📋 Changelog:

  • fix(pad): center alignment bug on uneven width (#22)
  • misc(padder): LICENSE update, github-action fixes, crate build settings (#21)
  • feat(padder): implement Source trait for &[T] (#20)
  • build(deps): update env_logger from 0.10.1 to 0.11.0 (#18)
  • [bench] add more benchmarks and generate report (#14)