#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

#260 in Debugging

Download history 225/week @ 2024-06-25 145/week @ 2024-07-02 114/week @ 2024-07-09 3/week @ 2024-07-16 15/week @ 2024-09-10 7/week @ 2024-09-17 19/week @ 2024-09-24 27/week @ 2024-10-01

68 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