Crates.io | bugreport |
lib.rs | bugreport |
version | |
source | src |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.