Registry / utility / common-failures

common-failures

JSON →
library0.2.0rscratesunverified

DEPRECATED: Helpers for the deprecated `failure` crate, including io::Error wrappers and quick_main! macro.

# Cargo.toml [dependencies] common_failures = "0.2.0"
INSTALL
IMPORT
SIG · COMMON-FAILURES
C
common-failures
utilityrustv0.2.0
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.

prelude
✓ use common_failures::prelude::*;

Uses the quick_main! macro from common_failures (deprecated).

use common_failures::prelude::*; fn main() -> Result<(), failure::Error> { quick_main!(); Ok(()) }
Debug
Known issues
breakingThis crate is deprecated because `failure` is long-deprecated. Use `anyhow` or `thiserror` instead.
fix
Replace with `anyhow` for error handling or `thiserror` for custom error types.
affects: >=0.0.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
common-failures — cargo add common-failures · libregistry