How to Use the color-eyre Crate for Better Error Output

Install color-eyre and call color_eyre::install() in main to get colored, detailed error reports with backtraces.

The color-eyre crate provides better error output by wrapping eyre::Report with colored formatting and backtraces. Add the dependency to Cargo.toml and initialize the error handler in main using color_eyre::install().

use color_eyre::eyre::Result;

#[tokio::main]
async fn main() -> Result<()> {
    color_eyre::install()?;
    // Your code here
    Ok(())
}