Crates.io | bugreport |
lib.rs | bugreport |
version | 0.5.0 |
source | src |
created_at | 2020-12-31 17:13:36.438523 |
updated_at | 2022-04-01 16:00:58.595065 |
description | Collect system and environment information for bug reports |
homepage | https://github.com/sharkdp/bugreport |
repository | https://github.com/sharkdp/bugreport |
max_upload_size | |
id | 329794 |
size | 54,612 |
bugreport
is a Rust 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
).
Note: This library is in an early stage and the API may change in the future.
The following code
use bugreport::{bugreport, collector::*, format::Markdown};
fn main() {
bugreport!()
.info(SoftwareVersion::default())
.info(OperatingSystem::default())
.info(CommandLine::default())
.info(EnvironmentVariables::list(&["SHELL", "EDITOR"]))
.info(CommandOutput::new("Python version", "python", &["-V"]))
.info(CompileTimeInformation::default())
.print::<Markdown>();
}
generates bug report information that looks like this.
SHELL
, PATH
, …)bash --version
)git bugreport
)/home/username
from paths)ffmpeg
s -report
option
git bugreport
grails bugreport
Other crates that might be useful:
human-panic
- Make panic messages nice for humans to read.