NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #4124 most downloaded on crates.io
A utility crate for lazily formatting values for later
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 4 months
Some releases are documented
notes for 8 of 22 stable releases
3 versions withdrawn
withdrawn after publishing
8 years old
25 releases · first in 2019
Inline the compile-time check in write, to remove an unwanted export.
write, to remove an unwanted export.{STYLE} didn't format correctly.Redesign internal write! macro to ensure that format method short circuiting is _always_ evaluated at compile time, rather than relying on an optimiza
write! macro to ensure that format method short circuiting is always evaluated at compile time, rather than relying on an optimization of an iterator call.One column per quarter.
Improved detecting of empty format strings
In particular, the improvements to if necessitated minor but technically backwards incompatible macro changes, which presented the opportunity to make…
What started as a simple collection of cleanup changes eventually spiraled out to the complete implementation of everything I've been looking to do for lazy_format 2.0. In particular, the improvements to if necessitated minor but technically backwards incompatible macro changes, which presented the opportunity to make the other backwards incompatible changes, like removing deprecated functionality and simplifying macro definitions. In general, if you're only using lazy_format and you aren't using horrorshow, you shouldn't experience any breakages in the upgrade.
lazy_format now supports implicit named parameters. Because we use format_args! internally, this support came automaticallylazy_format's if, match, and for syntaxes now allow for unparenthesized format literals, in cases where there's no arguments.lazy_format's if conditional version now allows omitting the else branch, in which case it will simply write nothing if none of the other if / else if branches match.lazy_format's else branch now requires the => syntax, for consistency (previously it was optional).pat pattern, which correctly handles nested | in patterns. This allows for much simpler macro definitions in a way that's fully backwards compatible (aside from the increased MSRV).semi_lazy_format; the complexity of its implementation wasn't worth the added functionality. Instead, callers should manually evaluate any parameters they want to be eagerly evaluated before calling lazy_format and then pass them manually.horrorshow feature, due to potential buggy interactions with transitive dependencies. Prefer instead to create a display adapter which connects Display to horrorshow.semi_lazy_format! no longer supports the deprecated fmt => body syntax; it now must use the |fmt| body syntax.for loop version of lazy_formatmake_lazy_format! now has a closure-like syntax, using |f| { ... } instead of f => { ... }. The older syntax is retained for backwards compatibility.
- Changelog started
Fix horrorshow implementation & borrows
Fix horrorshow implementation & borrows
Real fix for the cargo feature issue FOR REAL
Real fix for the cargo feature issue FOR REAL
Real fix for the cargo feature issue
Real fix for the cargo feature issue
Nothing published for this version
Add horrorshow as an optional dependency. When enabled, lazy_format objects implement horrorshow::render.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →