Expand description

bugreport is a library that helps application developers to automatically collect information about the system and the environment that users can send along with a bug report (similar to git bugreport or ffmpeg … -report).

Usage example:

use bugreport::{bugreport, collector::*, format::Markdown};

bugreport!()
    .info(SoftwareVersion::default())
    .info(OperatingSystem::default())
    .info(CommandLine::default())
    .info(EnvironmentVariables::list(&["SHELL", "EDITOR"]))
    .info(CommandOutput::new("Python version", "python", &["--version"]))
    .info(CompileTimeInformation::default())
    .print::<Markdown>();

Modules

Contains all builtin information collectors and the Collector trait to implement your own.

Different formats for printing the report.

Defines the document structure of the report. Only needed for custom collectors.

Macros

Generate a new BugReport object.

Re-export so dependent project does not have to manually depend on git-version crate Get the git version for the source code.

Structs

The main struct for collecting bug report information.