Registry / utility / derive-error-chain

derive-error-chain

JSON →
library0.11.2rscratesunverified

A Macros 1.1 implementation of the error-chain crate for deriving error types.

# Cargo.toml [dependencies] derive-error-chain = "0.11.2"
INSTALL
IMPORT
SIG · DERIVE-ERROR-CHAIN
D
derive-error-chain
utilityrustv0.11.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ErrorChain
✓ use derive_error_chain::ErrorChain;

Derives the error-chain trait for a custom error type.

use derive_error_chain::ErrorChain; #[derive(ErrorChain)] struct MyError; fn main() { let _ = MyError; }
Debug
Known issues
gotchaDeprecated in favor of thiserror or custom derive macros
fix
Use thiserror crate for simpler error derivation
affects: >=0.11.0
Upgrade
Version history
0.11.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
derive-error-chain — cargo add derive-error-chain · libregistry