2 unstable releases

Uses old Rust 2015

0.7.1 Sep 1, 2022
0.6.0 Aug 31, 2022

#98 in Testing

Download history 6928/week @ 2024-02-27 6690/week @ 2024-03-05 7180/week @ 2024-03-12 6798/week @ 2024-03-19 6490/week @ 2024-03-26 7431/week @ 2024-04-02 6556/week @ 2024-04-09 7149/week @ 2024-04-16 7542/week @ 2024-04-23 9026/week @ 2024-04-30 6345/week @ 2024-05-07 7899/week @ 2024-05-14 6708/week @ 2024-05-21 7767/week @ 2024-05-28 8055/week @ 2024-06-04 7381/week @ 2024-06-11

31,403 downloads per month
Used in 40 crates (39 directly)

Apache-2.0 OR MIT

649 lines


Missing assertion macros for Rust

Latest Version Latest Version Build Status Apache 2.0 OR MIT licensed no-std compatible Version compatibility

This is a fork of rust-claim. Big thanks to svartalf and Turbo87 for creating and working on the original library. I've created this fork to keep the library updated on crates.io and get around a versioning issue with autocfg. If the original library starts being updated again i'll deprecate this one.

This crate provides assertion macros that are missing in the Rust libcore / libstd:

  • Comparison: assert_ge, assert_gt, assert_le, and assert_lt
  • Matching: assert_matches
  • Result: assert_ok, assert_err, and assert_ok_eq
  • Option: assert_some, assert_none, and assert_some_eq
  • Poll: assert_pending, assert_ready, assert_ready_ok, assert_ready_err, and assert_ready_eq


Add the following to your Cargo.toml manifest to use this crate for tests, examples and benchmarks:

claims = "0.7"


Check out the documentation for available macros and examples.


Licensed under either of Apache License 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps