PackageTrack
Sign in Get early access

unicode-truncate

Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.

3.0.0 44M downloads/mo #1337 most downloaded on crates.io Aetf/unicode-truncate

What this package is like to depend on

Last release 3 days ago

20 Aug 2026

Release timing varies

gaps range from 2 months to 3.4 years

Most releases are documented

notes for 6 of 8 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

8 releases · first in 2019

2 releases in the last 12 months

see the full history below

Release timeline

8 releases · Aug 2019 to Aug 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. 3.0.0 20 Aug 2026
    Release notes

    Fixed

    • (deps) update all non-major dependencies

    Other

    • publish to crates.io via trusted publishing
    • [breaking] bump MSRV to 1.85
    • (deps) update actions/checkout action to v7
    • (deps) update actions/create-github-app-token action to v3
    Open source →
    Release notes

    Fixed

    • (deps) update all non-major dependencies

    Other

    • publish to crates.io via trusted publishing
    • [breaking] bump MSRV to 1.85
    • (deps) update actions/checkout action to v7
    • (deps) update actions/create-github-app-token action to v3
    Open source →
  2. 2.0.1 15 Jan 2026
    Release notes

    Fixed

    • (deps) update criterion to 0.8
    • (deps) update itertools to 0.14

    Other

    • update README.md
    • (deps) update actions/create-github-app-token action to v2
    • (deps) update actions/checkout action to v6
    Open source →
    Release notes

    Fixed

    • (deps) update criterion to 0.8
    • (deps) update itertools to 0.14

    Other

    • update README.md
    • (deps) update actions/create-github-app-token action to v2
    • (deps) update actions/checkout action to v6
    Open source →
  3. 2.0.0 10 Nov 2024
    Release notes

    Fixed

    • (deps) update rust crate unicode-width to 0.2

    Other

    • make release-plz use github app token
    • [breaking] bump MSRV to 1.66
    Open source →
    Release notes

    Fixed

    • (deps) update rust crate unicode-width to 0.2

    Other

    • make release-plz use github app token
    • [breaking] bump MSRV to 1.66
    Open source →
  4. 1.1.0 09 Jul 2024
    Release notes

    Added

    • segment by graphemes (#11)

    Fixed

    • (deps) update rust crate itertools to 0.13 (#20)
    • fixed typos in the renovate.json (#17)
    • Treat control characters as width 1, fixes #16 (#19)

    Other

    • Removed unnessary debug-assertions setting
    • tweak renovate configs (#13)
    Open source →
    Release notes

    Added

    • segment by graphemes (#11)

    Fixed

    • (deps) update rust crate itertools to 0.13 (#20)
    • fixed typos in the renovate.json (#17)
    • Treat control characters as width 1, fixes #16 (#19)

    Other

    • Removed unnessary debug-assertions setting
    • tweak renovate configs (#13)
    Open source →
  5. 1.0.0 27 Apr 2024
    Release notes

    It's about time for a 1.0 release. This crate has been stable over the years.

    Breaking changes

    Formally define MSRV (minimum supported rust version) to 1.63.

    Added

    • new method unicode_truncate_centered. Thanks @EdJoPaTo (#2, #3)

    Fixed

    • prevent arithmetic side effects (#7)
    • do not include zero-width characters at boundaries when truncate_start

    Other

    • use release-plz
    • use renovate (#4)
    • move from Travis to Github Action
    • update Rust crate criterion to 0.5 (#5)
    • fix broken links
    • Check in Cargo.lock per the latest guide
    Open source →
    Release notes

    It's about time for a 1.0 release. This crate has been stable over the years.

    Breaking changes

    Formally define MSRV (minimum supported rust version) to 1.63.

    Added

    • new method unicode_truncate_centered. Thanks @EdJoPaTo (#2, #3)

    Fixed

    • prevent arithmetic side effects (#7)
    • do not include zero-width characters at boundaries when truncate_start

    Other

    • use release-plz
    • use renovate (#4)
    • move from Travis to Github Action
    • update Rust crate criterion to 0.5 (#5)
    • fix broken links
    • Check in Cargo.lock per the latest guide
    Open source →
  6. 0.2.0 17 Dec 2020
    Release notes
    • Added unicode_truncate_start
    • Bump dependency version
    • Add benchmarking
    • Rewrite the logic using iterators for better performance
    Open source →
  7. 0.1.1 15 Aug 2019

    Nothing published for this version

  8. 0.1.0 15 Aug 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive