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 using PartialEq but not with Debug. 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 the std and alloc features to the pretty_assertions crate, with std enabled by default (#83, @tommilligan)
Adds the unstable feature to the pretty_assertions crate, for use with nightly rustc (#81, @tommilligan)
Add a drop in replacement for the unstable stdlib assert_matches macro, behind the unstable flag - thanks @gilescope for the suggestion! (#81, @tommilligan)
assert_ne no longer warns if values match using PartialEq but not with Debug. 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 the std and alloc features to the pretty_assertions crate, with std enabled by default (#83, @tommilligan)
Adds the unstable feature to the pretty_assertions crate, for use with nightly rustc (#81, @tommilligan)
Add a drop in replacement for the unstable stdlib assert_matches macro, behind the unstable flag - thanks @gilescope for the suggestion! (#81, @tommilligan)
v0.7.2
Fix macro hygiene for expansion in a no_implicit_prelude context (#70, @tommilligan)
v0.7.1
Fix a bug where multiline changes showed an unhelpful inline diff (#66, @tommilligan)
v0.7.0
Changed
Move from difference to diff 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:
Document the Comparison struct, which was previously hidden. This can be used to generate a pretty diff of two values without panicking. (#52, @tommilligan)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on pretty_assertions to permit the latest version.
Release notes
Sourced from pretty_assertions's releases.
Changelog
Sourced from pretty_assertions's changelog.
Commits
737c861
Merge pull request #83 from tommilligan/assert-eq-no-std659b66b
chore: prepare for v1.0.0 release0a32464
feat: fix and test for no_std with alloc9ef3e0d
Merge pull request #81 from tommilligan/assert-matchesd084599
chore: update tarpaulin version799d2b2
feature: add assert_matches as unstable feature55f9b7a
Merge pull request #78 from tommilligan/test-macro-integratec45600c
chore: make macro tests external9746ead
Merge pull request #77 from tommilligan/fix-bench-stda9ba6c2
bench: fix std comparison benchmarksDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)