{"id":57167,"library":"error-chain","title":"Error Chain","description":"A library for easy error handling and boilerplate reduction.","status":"active","version":"0.12.4","language":"rust","source_language":null,"source_url":"https://github.com/rust-lang-nursery/error-chain","tags":["error","handling","macros"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nerror-chain = \"0.12.4\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add error-chain","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"error_chain","correct":"use error_chain::error_chain;"}],"quickstart":{"code":"use error_chain::error_chain;\n\nerror_chain! {\n    foreign_links {\n        Io(::std::io::Error);\n    }\n}\n\nfn main() -> Result<()> {\n    let _file = std::fs::File::open(\"nonexistent.txt\")?;\n    Ok(())\n}","lang":"rust","description":"Defines custom error types with automatic From implementations."},"warnings":[{"fix":"Consider using `thiserror` or `anyhow` for modern error handling.","message":"Macro-based approach can lead to slower compile times and less IDE support.","severity":"gotcha","affected_versions":">=0.12.0"}],"env_vars":null,"search_vec":"'boilerpl':10 'chain':2 'easi':6 'error':1,7,12 'handl':8,13 'librari':4 'macro':14 'reduct':11","created_at":"2026-06-16T15:30:57.652187+00:00","updated_at":"2026-06-16T15:30:57.652187+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://github.com/rust-lang-nursery/error-chain","github":"https://github.com/rust-lang-nursery/error-chain","docs":"https://docs.rs/error-chain/","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}}