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

no-std test-format

提供 assert_debug_fmt 和 assert_display_fmt 宏,用于测试在 no_std 上的 Debug(或 Display)实现

2 个版本

0.1.1 2024 年 7 月 9 日
0.1.0 2024 年 7 月 1 日

#226 in 调试

Download history 370/week @ 2024-07-01 112/week @ 2024-07-08 5/week @ 2024-07-15

487 每月下载量
3 crates 中使用

EUPL-1.2 OR Apache-2.0 OR MIT

14KB
120 代码行

测试 DebugDisplay 实现(使用 no_std

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

通过 assert_debug_fmt!assert_display_fmt! 宏测试 no_std 目标上的 DebugDisplay 实现

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

要求

  • Rust 1.64+

行为准则

我们遵守 贡献者公约 并要求您也这样做。

许可证

版权所有 © 2024 Markus Mayer

三重许可,您可以选择以下之一

无运行时依赖