A Rust library that provides human-friendly panic messages for command-line applications.
human-panic is a Rust library that improves the user experience when command-line applications crash. It replaces standard Rust panic messages with friendly, actionable error reports that encourage users to submit bug reports, making it easier to diagnose and fix issues.
Rust developers building polished command-line interface (CLI) applications who want to handle crashes gracefully for end users.
Developers choose human-panic because it transforms cryptic panic output into clear, polite explanations with instructions for submitting crash reports, while maintaining a privacy-first approach with no automated error collection.
Panic messages for humans.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Replaces cryptic Rust panic messages with clear, polite explanations and actionable instructions, as demonstrated in the README's default vs human-panic output comparison.
Automatically generates TOML files containing error context, backtraces, and system information, making it easier to diagnose bugs from user submissions.
Does not perform automated error collection, relying on voluntary user submissions to respect privacy, as emphasized in the philosophy section.
Only activates in release builds to avoid interfering with debugging, ensuring developers see standard panic messages during development, per the usage instructions.
Relies entirely on users manually submitting crash reports, which can lead to low report rates and missed issues in production.
Only handles panics and not other error types like Result, leaving non-panic failures unaddressed without additional setup.
Requires users to locate and send report files, which can be cumbersome and reduce the likelihood of bug submissions, especially for less technical users.