#debugging #output #heuristics #parser #key #struct-fields

heuristic_debug_parser

Parse the output of std::fmt::Debug

2 unstable releases

0.4.0 Dec 28, 2025
0.3.0 Dec 21, 2025

#16 in #heuristics


Used in 2 crates (via pretty_assertions_sorted_…)

MIT/Apache

25KB
624 lines

This crate makes a best-effort attempt to parse the output of Rust Debug into a structure. My motivation is to facilitate neater output in test pretty response, but there are probably other places where it is useful, e.g. to convert debug output into json to send to some logfile.

Fork from

Which differentes

  • Actual libs
  • add support rust key words in struct fields

Dependencies

~1MB
~23K SLoC