awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Rust Error Handling Libraries

Ranking updated Jun 30, 2026

Collection of crates providing robust error management, reporting, and diagnostic tools for Rust application development.

Rust Error Handling Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • dtolnay/thiserrordtolnay avatar

    dtolnay/thiserror

    5,459View on GitHub↗

    thiserror is a Rust error handling library and procedural macro designed to define custom error types. It functions as a trait implementation automator that generates the necessary code for standard library error traits at compile time. The library focuses on eliminating boilerplate by using derive macros to automatically implement display and source methods. It allows for the creation of custom error structs and enums that can map low-level errors to high-level variants while preserving the original cause and backtrace information. Its capabilities cover custom error formatting through temp

    thiserror is a derive-macro library that automates implementing Display, Source, and backtrace for custom error types, providing exactly the ergonomic error creation, chaining, and std::error::Error integration this search requires.

    RustCustom Error Type DefinitionsRuntime Failure Backtrace CapturersDeclarative Error Formatting
    View on GitHub↗5,459
  • dtolnay/anyhowdtolnay avatar

    dtolnay/anyhow

    6,569View on GitHub↗

    Anyhow is a dynamic error handling library for Rust applications that provides a flexible error container using type erasure. It serves as a tool for simplifying error signatures by wrapping diverse failure types into a single object, allowing for the propagation of any error that implements the standard error trait without requiring a custom enumeration for every function. The project functions as an error context provider by attaching high-level diagnostic information and recording execution stack traces at the point of failure. It enables the recovery of concrete error implementations from

    Anyhow is a dynamic error handling library that simplifies error propagation and chaining with context, supports backtraces, and fully integrates with std::error::Error, but it uses type erasure so it does not support defining custom error types — still a core Rust error handling tool that matches your need for ergonomic handling and standard trait integration.

    RustRuntime Failure Backtrace CapturersStandardized Error TraitsError Propagation Systems
    View on GitHub↗6,569

Related searches

  • a library for handling API errors
  • a logging library for Rust applications
  • a data validation library for Rust
  • a library for building Rust CLI applications
  • a library for managing configuration in Rust
  • a command-line argument parser for Rust
  • a testing framework for Rust projects
  • a firmware framework for programming microcontrollers in Rust