{"id":57311,"library":"failure-derive","title":"Failure Derive","description":"Derive macros for the failure crate, providing ergonomic error types.","status":"deprecated","version":"0.1.8","language":"rust","source_language":null,"source_url":"https://github.com/rust-lang-nursery/failure","tags":["error-handling","derive","deprecated"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfailure_derive = \"0.1.8\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add failure_derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Fail","correct":"use failure_derive::Fail;"}],"quickstart":{"code":"use failure_derive::Fail;\n\n#[derive(Fail, Debug)]\npub enum MyError {\n    #[fail(display = \"An error occurred: {}\", _0)]\n    General(String),\n}","lang":"rust","description":"Derive the Fail trait for a custom error enum."},"warnings":[{"fix":"Migrate to thiserror for derive macros or anyhow for error handling.","message":"The failure crate is deprecated in favor of std::error::Error and thiserror/anyhow.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'crate':8 'deprec':17 'deriv':2,3,16 'ergonom':10 'error':11,14 'error-handl':13 'failur':1,7 'handl':15 'macro':4 'provid':9 'type':12","created_at":"2026-06-16T15:37:34.229362+00:00","updated_at":"2026-06-16T15:37:34.229362+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://rust-lang-nursery.github.io/failure/","github":"https://github.com/rust-lang-nursery/failure","docs":"https://docs.rs/failure_derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}