{"id":66257,"library":"cfg-match","title":"CfgMatch","description":"Provides compile-time conditional matching similar to cfg! but with pattern matching on configuration predicates.","status":"active","version":"0.2.1","language":"rust","source_language":null,"source_url":"https://github.com/arcnmx/cfg-match-rs","tags":["compile-time","conditional","macro","configuration"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncfg-match = \"0.2.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cfg-match","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"cfg_match","correct":"use cfg_match::cfg_match;"}],"quickstart":{"code":"use cfg_match::cfg_match;\n\nfn main() {\n    let os = cfg_match! {\n        target_os = \"linux\" => \"Linux\",\n        target_os = \"windows\" => \"Windows\",\n        _ => \"Other\",\n    };\n    println!(\"OS: {}\", os);\n}","lang":"rust","description":"Demonstrates compile-time conditional matching using cfg_match! macro."},"warnings":[],"env_vars":null,"search_vec":"'cfg':10 'cfgmatch':1 'compil':4,19 'compile-tim':3,18 'condit':6,21 'configur':16,23 'macro':22 'match':7,14 'pattern':13 'predic':17 'provid':2 'similar':8 'time':5,20","created_at":"2026-06-17T17:21:27.864611+00:00","updated_at":"2026-06-17T17:21:27.864611+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/arcnmx/cfg-match-rs","github":"https://github.com/arcnmx/cfg-match-rs","docs":"https://docs.rs/cfg-match/","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-17","next_check":"2026-12-14","install_tag":null}}