awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Rust 错误处理库

排名更新于 2026年6月30日

提供稳健错误管理、报告和诊断工具的 Rust Crates 合集。

Rust 错误处理库

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • dtolnay/thiserrordtolnay 的头像

    dtolnay/thiserror

    5,459在 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
    在 GitHub 上查看↗5,459
  • dtolnay/anyhowdtolnay 的头像

    dtolnay/anyhow

    6,569在 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
    在 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
  • Rust 命令行参数解析器
  • a testing framework for Rust projects
  • 使用 Rust 编写微控制器程序的固件框架