PackageTrack
Sign in Get early access

powerfmt

`powerfmt` is a library that provides utilities for formatting values. This crate makes it significantly easier to support filling to a minimum width with alignment, avoid heap allocation, and avoid repetitive calculations.

0.2.0 497M downloads/mo #227 most downloaded on crates.io jhpratt/powerfmt

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Too new to tell

only 1 release windows

Nearly every release is documented

notes for 4 of 4 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

4 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

4 releases · Oct 2023 to Oct 2023
2024 2025 2026
Release Pre-release

Releases

latest 4
  1. 0.2.0 13 Oct 2023
    Release notes

    See the changelog for details.

    Open source →
    Release notes

    Added

    • padded_width_of!
    • Metadata::padded_width
    • impl SmartDisplay for char

    Fixed

    • The width of integers is now correct. It previous did not account for the sign of the integer.
    • Flags for FormatterOptions work as expected. Previously, getters were implemented in such a way that effective prevented their use.

    Changed

    • SmartDisplay::metadata returns Metadata<'_, Self> instead of Metadata<'_, Self::Metadata>. This permits Metadata to capture the lifetime of the type it is for, rather than relying on the user to provide (or infer) the correct lifetime.

      This affects any uses of wrapper types. If you need to return the metadata of an inner type, you can call Metadata::reuse to change the type. The metadata of both types must be the same, and the lifetime of the wrapper type must be at most the lifetime of the inner type. These requirements are enforced by the compiler.

    • Metadata::new requires self be provided as a parameter for the same reason.

    • The bounds for Debug, Clone, and Copy for Metadata are now what is strictly required.

    Renamed

    • widthunpadded_width
    • width_ofpadded_width_of

    Removed

    • Metadata::width_of_many (padded_width_of! instead)
    Open source →
  2. 0.1.2 10 Oct 2023
    Release notes

    See the changelog for details.

    Open source →
    Release notes

    Added

    • SmartDisplay is implemented for all integer types.

    Changed

    • The minimum supported Rust version is now 1.67.0.
    Open source →
  3. 0.1.1 08 Oct 2023
    Release notes

    See the changelog for details.

    Open source →
    Release notes

    Fixed

    The docs.rs build has been fixed, as it failed to deploy for v0.1.0.

    Open source →
  4. 0.1.0 08 Oct 2023
    Release notes

    See the changelog for details.

    Open source →
    Release notes

    Added

    • buf::WriteBuffer
    • ext::FormatterExt
    • smart_display::SmartDisplay
    • smart_display::FormatterOptions
    • smart_display::Metadata
    • smart_display::ManySmartDisplay
    • smart_display::delegate
    • smart_display::private_metadata
    Open source →

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