Skip to content

v0.5.0

Choose a tag to compare

@florian1345 florian1345 released this 15 Feb 16:17
· 2 commits to master since this release
df0c7df

Breaking changes

  • Switched to Rust edition 2024.
  • Removed 'collection and 'map lifetimes from Collection and Map trait respectively. These seemed redundant and their removal simplifies the traits. However, current implementations of those traits will now no longer compile until the lifetimes are removed.

Other changes

  • Added assertions for types that can be parsed as JSON as well as JSON values, powered by the serde_json crate.
  • Added various assertions for collections and maps to check whether they hold only one element/key/value/entry.
    • Assert equality with a given element/key/value/entry (is_single_*)
    • Assert that the one-and-only element/key/value/entry matches a predicate (is_single_*_matching)
    • Return an asserter on the one-and-only element/key/value/entry (to_single_*)