{"id":58892,"library":"unreachable","title":"unreachable","description":"Provides a macro for marking unreachable code paths in stable Rust, similar to std::unreachable! but with a hint for optimization.","status":"active","version":"1.0.0","language":"rust","source_language":null,"source_url":"https://github.com/reem/rust-unreachable","tags":["macro","optimization","unreachable"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nunreachable = \"1.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add unreachable","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"unreachable","correct":"use unreachable::unreachable;"}],"quickstart":{"code":"use unreachable::unreachable;\n\nfn main() {\n    let x = 1;\n    match x {\n        1 => println!(\"one\"),\n        _ => unreachable!(),\n    }\n}","lang":"rust","description":"Uses the unreachable! macro to mark a match arm that should never execute."},"warnings":[],"env_vars":null,"search_vec":"'code':8 'hint':20 'macro':4,23 'mark':6 'optim':22,24 'path':9 'provid':2 'rust':12 'similar':13 'stabl':11 'std':15 'unreach':1,7,16,25","created_at":"2026-06-16T16:42:37.169022+00:00","updated_at":"2026-06-16T16:42:37.169022+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/reem/rust-unreachable","github":"https://github.com/reem/rust-unreachable","docs":"https://docs.rs/unreachable/","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}}