{"id":51509533,"url":"https://github.com/murphsicles/cfg-if","last_synced_at":"2026-07-08T04:30:58.722Z","repository":{"id":358150313,"uuid":"1240169553","full_name":"murphsicles/cfg-if","owner":"murphsicles","description":"Conditional compilation macro for Zeta — cfg_if! { if #[cfg(...)] { ... } }","archived":false,"fork":false,"pushed_at":"2026-05-15T23:28:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-16T01:58:38.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murphsicles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T20:55:48.000Z","updated_at":"2026-05-15T23:28:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/murphsicles/cfg-if","commit_stats":null,"previous_names":["murphsicles/cfg-if"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/murphsicles/cfg-if","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fcfg-if","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fcfg-if/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fcfg-if/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fcfg-if/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murphsicles","download_url":"https://codeload.github.com/murphsicles/cfg-if/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Fcfg-if/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35252324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-08T04:30:57.629Z","updated_at":"2026-07-08T04:30:58.713Z","avatar_url":"https://github.com/murphsicles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# @std/cfg-if — Conditional Compilation Macro for Zeta\n\nAuto-converted from [cfg-if](https://crates.io/crates/cfg-if) v1.0.4 via [Dark Factory](https://github.com/murphsicles/dark-factory).\n\n## Features\n- **cfg_if!** — ergonomic conditional compilation similar to `if/else if/else` chains\n- **Compile-time** — evaluated at compile time, dead branches are eliminated\n- **Composable** — supports nested cfg_if! blocks\n\n## Usage\n```zeta\nuse @std/cfg_if::cfg_if;\n\ncfg_if! {\n    if #[cfg(target_os = \"linux\")] {\n        println!(\"Running on Linux\");\n    } else if #[cfg(target_os = \"macos\")] {\n        println!(\"Running on macOS\");\n    } else {\n        println!(\"Running on an unknown OS\");\n    }\n}\n```\n\n## Stats: 1 file, 41 lines, 0 unsupported items\n\n## License: MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fcfg-if","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphsicles%2Fcfg-if","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Fcfg-if/lists"}