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

no-std dev 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

#284 in Debugging

Download history 21/week @ 2024-09-15 14/week @ 2024-09-22 31/week @ 2024-09-29 2/week @ 2024-10-06

136 downloads per month
Used in 4 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