Releases: rust-pretty-assertions/rust-pretty-assertions
Releases · rust-pretty-assertions/rust-pretty-assertions
v1.4.1
v1.4.0
v1.3.0
Changed
- MSRV bumped to 1.54.0 (see #102)
- Removed the publically re-exported
ansi_term::Style. This was never intended for public use. (see #102)
Fixed
- Moved from the unmaintained
ansi_termcrate toyansifor ANSI terminal escape code support. Thanks to @Roguelazer for reporting and fixing this! (#102, @Roguelazer)
v1.2.1
Fixed
- Fixed a panic caused by diffing two
str-like values where only the left has a trailing newline - thanks @Michael-F-Bryan for reporting this (#97, @tommilligan)
v1.2.0
v1.1.0
Added
- Add
assert_str_eqfor comparing twostr-like values withoutDebugformatting. Thanks to @x3ro for implementing this! (#88, @x3ro)
Fixed
- Ensure license text is included in crate archive - thanks @decathorpe for reporting this (#87, @tommilligan)
v1.0.0
Note: As pretty_assertions has in practice had a stable API for several years, this feature release takes the opportunity to increment the version to 1.0.0 instead of 0.8.0. No breaking changes are expected.
Removed
assert_neno longer warns if values match usingPartialEqbut not withDebug. This was noted as no longer being necessary after Rust 1.25 (current MSRV 1.35.0)
Added
- Officially support
no_std(thanks to @Luro02 for the report and reviews!). Adds thestdandallocfeatures to thepretty_assertionscrate, withstdenabled by default (#83, @tommilligan) - Adds the
unstablefeature to thepretty_assertionscrate, for use with nightly rustc (#81, @tommilligan) - Add a drop in replacement for the unstable stdlib
assert_matchesmacro, behind theunstableflag - thanks @gilescope for the suggestion! (#81, @tommilligan)
v0.7.2
Fixed
- Fix macro hygiene for expansion in a
no_implicit_preludecontext (#70, @tommilligan)
v0.7.1
Fixed
- Fix a bug where multiline changes showed an unhelpful inline diff (#66, @tommilligan)
v0.7.0
Changed
- Move from
differencetodifffor calculating diffs. The exact assertion messages generated may differ from previous versions. (#52, @tommilligan)
For example, the following assertion message from v0.7.0:
Was previously rendered like this in v0.6.1:
Added
- Support for unsized values (#42, @stanislav-tkach)
- Document the
Comparisonstruct, which was previously hidden. This can be used to generate a pretty diff of two values without panicking. (#52, @tommilligan)
Fixed
- Fix some unhygenic macro expansions (#41, @tommilligan)
Internal
- Test Windows targets in CI (#46, @tommilligan)
- Bump
ansi_termversion to 0.12 (#34, @waywardmonkeys) - Code health improvements (#34, @waywardmonkeys)

