#display #format #no-alloc #no-std

no-std test-format

Provides the assert_debug_fmt and assert_display_fmt macros for testing Debug (or Display) implementations on no_std

2 releases

0.1.1 Jul 9, 2024
0.1.0 Jul 1, 2024

#264 in Debugging

Download history 283/week @ 2024-06-28 188/week @ 2024-07-05 15/week @ 2024-07-12 1/week @ 2024-07-19

136 downloads per month
Used in 3 crates

EUPL-1.2 OR Apache-2.0 OR MIT

14KB
120 lines

Test Debug and Display implementations (with no_std)

Crates.io Docs Build Status Safety Dance codecov MSRV EUPL 1.2 licensed Apache 2.0 licensed MIT licensed

Test Debug and Display implementations on no_std targets viaassert_debug_fmt! and assert_display_fmt! macros:

assert_debug_fmt!(your_type, "expected debug format output");
assert_display_fmt!(your_type, "expected display format output");

Requirements

  • Rust 1.64+

Code of Conduct

We abide by the Contributor Covenant and ask that you do as well.

License

Copyright © 2024 Markus Mayer

Triple licensed under your choice of either of:

No runtime deps