awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
dtolnay avatar

dtolnay/thiserror

0
View on GitHub↗
5,459 stele·210 fork-uri·Rust·Apache-2.0·3 vizualizări

Thiserror

thiserror este o bibliotecă de gestionare a erorilor Rust și un macro procedural conceput pentru a defini tipuri de erori personalizate. Funcționează ca un automatizator de implementare a trait-urilor care generează codul necesar pentru trait-urile de eroare ale bibliotecii standard la momentul compilării.

Biblioteca se concentrează pe eliminarea boilerplate-ului prin utilizarea derive macros pentru a implementa automat metodele display și source. Permite crearea de structuri și enum-uri de eroare personalizate care pot mapa erorile de nivel scăzut la variante de nivel înalt, păstrând în același timp cauza originală și informațiile de backtrace.

Capabilitățile sale acoperă formatarea erorilor personalizate prin interpolarea șabloanelor, gestionarea propagării erorilor și integrarea stack backtrace-urilor pentru debug. Oferă, de asemenea, mecanisme pentru a automatiza conversia erorilor și a urmări originile erorilor prin câmpuri desemnate.

Features

  • Error Handling Libraries - Provides a comprehensive framework for defining custom error types in Rust using derive macros.
  • Macro-Driven Transformations - Uses Rust procedural macros to generate the standard Display and Error trait implementations at compile time.
  • Error Source Tracing - Implements source methods to return the original low-level error that caused the current failure.
  • Automated - Automatically implements the Display and Error traits for custom Rust types to eliminate boilerplate.
  • Automatic Trait Conversions - Automatically generates From trait implementations to convert lower-level errors into custom high-level variants.
  • Procedural Macros - Uses procedural macros to generate trait implementations for error types at compile time.
  • Rust Error Handling Tooling - Provides a comprehensive solution for defining custom error types in Rust with minimal boilerplate via trait automation.
  • Compile-Time Code Generation - Eliminates manual boilerplate by generating trait implementations at compile time using declarative macros.
  • Automatic Error Conversions - Automates the transformation of low-level errors into custom variants using attribute-driven conversion logic.
  • Error Mapping Generators - Provides a mechanism to map low-level errors to high-level variants while preserving original cause and backtrace information.
  • Error Propagation Systems - Manages the hierarchy of failure causes by wrapping low-level errors into high-level custom variants.
  • Custom Error Type Definitions - Facilitates the definition of custom error enums and structs with minimal boilerplate using derive macros.
  • Error Wrapping - Wraps lower-level errors within custom types to maintain the error chain while providing a unified interface.
  • Error Source Resolution - Implements the source method by automatically resolving and forwarding the underlying causal error from designated fields.
  • Causal - Provides the ability to identify and return the underlying cause of an error via the source method.
  • Stack Trace Capture - Captures stack trace data within error types by detecting backtrace fields or forwarding source errors.
  • Template String Interpolation - Provides a mechanism to interpolate fields into error messages using template strings defined in attributes.
  • Rust Application Debugging - Supports diagnosing Rust application failures through the integration of source methods and backtraces.
  • Declarative Error Formatting - Creates user-friendly error messages in Rust using templates that automatically include data from error fields.
  • Error Detail Proxying - Allows errors to proxy their display and source methods to an underlying error, hiding internal implementation details.
  • Error Template Interpolation - Enables the creation of user-facing error messages using templates that interpolate data from error fields.
  • Display-Based Error Messages - Generates human-readable error strings by implementing the Display trait with interpolated field values.
  • Runtime Failure Backtrace Capturers - Integrates stack backtrace capture and propagation across nested error layers for debugging.
  • Developer Utilities - Library for defining custom error types in Rust.

Istoric stele

Graficul istoricului de stele pentru dtolnay/thiserrorGraficul istoricului de stele pentru dtolnay/thiserror

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Întrebări frecvente

Ce face dtolnay/thiserror?

thiserror este o bibliotecă de gestionare a erorilor Rust și un macro procedural conceput pentru a defini tipuri de erori personalizate. Funcționează ca un automatizator de implementare a trait-urilor care generează codul necesar pentru trait-urile de eroare ale bibliotecii standard la momentul compilării.

Care sunt principalele funcționalități ale dtolnay/thiserror?

Principalele funcționalități ale dtolnay/thiserror sunt: Error Handling Libraries, Macro-Driven Transformations, Error Source Tracing, Automated, Automatic Trait Conversions, Procedural Macros, Rust Error Handling Tooling, Compile-Time Code Generation.

Care sunt câteva alternative open-source pentru dtolnay/thiserror?

Alternativele open-source pentru dtolnay/thiserror includ: rust-lang/rfcs — The Rust RFCs repository is the formal home for the Rust language evolution process, housing the structured design… dtolnay/anyhow — Anyhow is a dynamic error handling library for Rust applications that provides a flexible error container using type… rust-lang/rust-by-example — This project is an interactive programming education resource and tutorial designed for learning the Rust programming… ehmicky/modern-errors — This library provides a comprehensive framework for managing errors in JavaScript and TypeScript applications. It… rust-lang/book — The Rust Programming Language Book is the official technical guide and educational resource for the Rust language. It… sweet-js/sweet-core — Sweet-core is a JavaScript source-to-source compiler and Lisp-style macro system. It functions as a syntax transformer…

Alternative open-source pentru Thiserror

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Thiserror.
  • rust-lang/rfcsAvatar rust-lang

    rust-lang/rfcs

    6,406Vezi pe GitHub↗

    The Rust RFCs repository is the formal home for the Rust language evolution process, housing the structured design documents and community review mechanisms that govern changes to the Rust programming language, its compiler, and its standard library. It defines the complete lifecycle for proposing, discussing, and implementing substantial changes through RFC documents, from initial submission and community feedback through final comment periods and sub-team sign-offs. The repository codifies the governance and collaboration processes that shape Rust's development, including mechanisms for com

    Markdownrfcrfc-processrust
    Vezi pe GitHub↗6,406
  • dtolnay/anyhowAvatar dtolnay

    dtolnay/anyhow

    6,569Vezi pe 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

    Rust
    Vezi pe GitHub↗6,569
  • rust-lang/rust-by-exampleAvatar rust-lang

    rust-lang/rust-by-example

    8,026Vezi pe GitHub↗

    This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre

    Handlebars
    Vezi pe GitHub↗8,026
  • ehmicky/modern-errorsAvatar ehmicky

    ehmicky/modern-errors

    1,482Vezi pe GitHub↗

    This library provides a comprehensive framework for managing errors in JavaScript and TypeScript applications. It enables the creation of structured, type-safe error hierarchies, allowing developers to define custom error classes that ensure consistent behavior and categorization across a codebase. The project distinguishes itself through a modular plugin architecture that allows for the extension of core error functionality, such as custom logging, serialization, and validation. It includes an exception normalization pipeline that converts non-standard or malformed errors into predictable in

    JavaScriptbrowsercausecode-quality
    Vezi pe GitHub↗1,482
Vezi toate cele 30 alternative pentru Thiserror→