Parser for defects in JSON format generated by Rust cargo-clippy analysis
Examples of common usage:
$rustparse --filter-debuginfo val FILE
Debug info emission level:
val=1 line-tables only (for stacktraces and breakpoints);
val=2 full debug info with variable and type information.
$rustparse --filter-reason val FILE
val=compiler-artifact compiler info (usually associated with debuginfo=2)
$rustparse --filter-opt-level val FILE
val=[0-3] optimization with possible level
Using tests provided you can do following to get some useful output:
$rustparse --filter-reason compiler-artifact --filter-opt-level 0,1 tests/defects