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_term
crate toyansi
for 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_eq
for comparing twostr
-like values withoutDebug
formatting. 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_ne
no longer warns if values match usingPartialEq
but 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 thestd
andalloc
features to thepretty_assertions
crate, withstd
enabled by default (#83, @tommilligan) - Adds the
unstable
feature to thepretty_assertions
crate, for use with nightly rustc (#81, @tommilligan) - Add a drop in replacement for the unstable stdlib
assert_matches
macro, behind theunstable
flag - thanks @gilescope for the suggestion! (#81, @tommilligan)
v0.7.2
Fixed
- Fix macro hygiene for expansion in a
no_implicit_prelude
context (#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
difference
todiff
for 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
Comparison
struct, 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_term
version to 0.12 (#34, @waywardmonkeys) - Code health improvements (#34, @waywardmonkeys)