2 stable releases

1.0.2 Feb 5, 2025

#2399 in Procedural macros

Download history 312/week @ 2025-02-05

312 downloads per month
Used in 3 crates (via cdumay_error)

Custom license

12KB
157 lines

cdumay_error_derive

License: BSD-3-Clause cdumay_error_derive on crates.io cdumay_error_derive on docs.rs Source Code Repository

The cdumay_error_derive crate provides procedural macros to simplify the creation of custom error types in Rust. By leveraging these macros, developers can efficiently define error structures that integrate seamlessly with the cdumay_error error management ecosystem.

Overview

Error handling in Rust often involves creating complex structs to represent various error kinds and implementing traits to provide context and conversions. The cdumay_error_derive crate automates this process by offering macros that generate the necessary boilerplate code, allowing for more readable and maintainable error definitions.

Features

  • Macros: Automatically generate implementations for custom error types.
  • Integration with cdumay_error: Designed to work cohesively with the cdumay_error crate, ensuring consistent error handling patterns.

Usage

See cdumay_error documentation for more information.

Dependencies

~185–610KB
~15K SLoC