pub fn install(dir: Option<&Path>)Expand description
Install the process-wide crash hooks writing to dir: a panic hook that
writes a report and chains to the previously installed hook, plus
(macOS/Windows) a native fault handler that writes a minidump. Binaries call
this first thing at startup, naming the crashes/ of the state tree they
resolved; later calls re-point the directory but install nothing twice.
Without a directory (None) the hooks still chain and the notes still
accumulate, but nothing is written: an embedder that has chosen no place for
them gets no files.