Features Multiple report format verbosity levels color-eyre provides 3 different report formats for how it formats the captured SpanTrace and Backtrace, minimal, short, and full. Take the below snippets of the output produced by examples/usage.rs: Running cargo run. The pretty printing for backtraces and span traces isn't actually provided by color-eyre, but instead comes from its dependencies color-backtrace and color-spantrace.
color-backtrace in particular has many more features than are exported by color-eyre, such as customized color schemes, panic hooks, and custom frame filters. The end report is then pretty printed with the help of color-backtrace, color-spantrace, and ansi_term. Check out the README on color.
Whether you're building a CLI tool, web service, or systems application, color-eyre provides reliable functionality backed by Rust's safety guarantees and performance. In addition to panic handling, color_eyre allows us to track additional information in the context of our errors and include suggestions by taking advantage of distributed tracing infrastructure. A custom handler type for `eyre:Report` which provides colorful error reports and `tracing-error` support.
The todo! macro is useful and it also exposes what happens if our application panics. A trait object based error handling type for easy idiomatic error handling and reporting in Rust applications - eyre-rs/eyre. The end report is then pretty printed with the help of color-backtrace, color-spantrace, and ansi_term.
Check out the README on color-eyre for details on the report format. simple-eyre: A minimal EyreHandler that captures no additional information, for when you do not wish to capture Backtrace s with errors. A custom context for eyre that supports backtraces on stable Rust 14 3.