| Crates.io | bugreport |
| lib.rs | bugreport |
| version | 0.5.1 |
| created_at | 2020-12-31 17:13:36.438523+00 |
| updated_at | 2025-01-04 09:21:53.665364+00 |
| 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 | 60,714 |
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)ffmpegs -report option
git bugreport
grails bugreport
Other crates that might be useful:
human-panic - Make panic messages nice for humans to read.