awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
dtolnay avatar

dtolnay/thiserror

0
View on GitHub↗
5,459 نجوم·210 تفرعات·Rust·Apache-2.0·3 مشاهدات

Thiserror

thiserror هي مكتبة معالجة أخطاء Rust وماكرو إجرائي مصمم لتحديد أنواع أخطاء مخصصة. تعمل كمؤتمت لتنفيذ السمات (trait) الذي يولد الكود اللازم لسمات خطأ المكتبة القياسية في وقت التجميع.

تركز المكتبة على القضاء على الكود المتكرر (boilerplate) باستخدام ماكرو derive لتنفيذ طرق العرض والمصدر تلقائياً. تسمح بإنشاء هياكل أخطاء مخصصة وتعدادات يمكنها تعيين أخطاء منخفضة المستوى إلى متغيرات عالية المستوى مع الحفاظ على السبب الأصلي ومعلومات التتبع (backtrace).

تغطي قدراتها تنسيق الأخطاء المخصص من خلال استيفاء القالب، وإدارة انتشار الخطأ، ودمج تتبعات المكدس لتصحيح الأخطاء. كما توفر آليات لأتمتة تحويل الخطأ وتتبع أصول الخطأ عبر حقول مخصصة.

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.

سجل النجوم

مخطط تاريخ النجوم لـ dtolnay/thiserrorمخطط تاريخ النجوم لـ dtolnay/thiserror

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

بدائل مفتوحة المصدر لـ Thiserror

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Thiserror.
  • rust-lang/rfcsالصورة الرمزية لـ rust-lang

    rust-lang/rfcs

    6,406عرض على 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
    عرض على GitHub↗6,406
  • dtolnay/anyhowالصورة الرمزية لـ dtolnay

    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

    Rust
    عرض على GitHub↗6,569
  • rust-lang/rust-by-exampleالصورة الرمزية لـ rust-lang

    rust-lang/rust-by-example

    8,026عرض على 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
    عرض على GitHub↗8,026
  • ehmicky/modern-errorsالصورة الرمزية لـ ehmicky

    ehmicky/modern-errors

    1,482عرض على 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
    عرض على GitHub↗1,482
عرض جميع البدائل الـ 30 لـ Thiserror→

الأسئلة الشائعة

ما هي وظيفة dtolnay/thiserror؟

thiserror هي مكتبة معالجة أخطاء Rust وماكرو إجرائي مصمم لتحديد أنواع أخطاء مخصصة. تعمل كمؤتمت لتنفيذ السمات (trait) الذي يولد الكود اللازم لسمات خطأ المكتبة القياسية في وقت التجميع.

ما هي الميزات الرئيسية لـ dtolnay/thiserror؟

الميزات الرئيسية لـ dtolnay/thiserror هي: Error Handling Libraries, Macro-Driven Transformations, Error Source Tracing, Automated, Automatic Trait Conversions, Procedural Macros, Rust Error Handling Tooling, Compile-Time Code Generation.

ما هي البدائل مفتوحة المصدر لـ dtolnay/thiserror؟

تشمل البدائل مفتوحة المصدر لـ dtolnay/thiserror: 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…