#crash-reporting #crash-reports

minidump-synth

A library for producing synthetic minidumps for testing

14 releases (8 breaking)

0.18.0 Sep 18, 2023
0.17.0 May 17, 2023
0.16.0 Apr 5, 2023
0.15.2 Dec 7, 2022
0.10.2 Mar 24, 2022

#88 in Audio

Download history 15/week @ 2023-06-16 13/week @ 2023-06-23 17/week @ 2023-06-30 5/week @ 2023-07-07 5/week @ 2023-07-21 1/week @ 2023-07-28 4/week @ 2023-08-04 13/week @ 2023-08-11 1/week @ 2023-08-18 13/week @ 2023-08-25 2/week @ 2023-09-01 34/week @ 2023-09-08 22/week @ 2023-09-15 4/week @ 2023-09-22

62 downloads per month

MIT license

455KB
9K SLoC

minidump-synth

crates.io

Provides a simple interface for mocking minidumps for unit tests.

This is basically an internal dev-dependency of rust-minidump that we're publishing only so that cargo publish doesn't complain about it. I guess you could use it but we don't recommend it?


lib.rs:

Synthetic Minidumps for Testing

This is a hacky mess that intentionally doesn't use minidump-common's layouts so that we can catch incorrect changes to minidump-common itself. It exists primarily as an internal dev-dependency of rust-minidump, but is published for the sake of satisfying cargo-publish.

Basic usage is to [SynthMinidump][], use its methods to build up the binary, and then finish() to write the binary to a buffer. Then you can either write that to disk as an actual minidump file or feed it directly to the minidump or minidump-processor crate.

Dependencies

~1–1.6MB
~33K SLoC