{"id":15031312,"url":"https://github.com/st4s1k/rust-c4","last_synced_at":"2026-01-26T00:06:58.955Z","repository":{"id":251991947,"uuid":"839055035","full_name":"st4s1k/rust-c4","owner":"st4s1k","description":"Rust macro for C-like for-loop","archived":false,"fork":false,"pushed_at":"2024-08-07T20:09:38.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T00:39:12.016Z","etag":null,"topics":["for","for-loop","macro","macros","macros-rust","rust","rust-crate","rust-lang","rust-library","rustlang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/st4s1k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-06T21:55:32.000Z","updated_at":"2024-09-17T13:35:45.000Z","dependencies_parsed_at":"2025-02-16T03:42:20.816Z","dependency_job_id":null,"html_url":"https://github.com/st4s1k/rust-c4","commit_stats":null,"previous_names":["st4s1k/rust-c4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/st4s1k/rust-c4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st4s1k%2Frust-c4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st4s1k%2Frust-c4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st4s1k%2Frust-c4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st4s1k%2Frust-c4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st4s1k","download_url":"https://codeload.github.com/st4s1k/rust-c4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st4s1k%2Frust-c4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28761906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T23:06:19.311Z","status":"ssl_error","status_checked_at":"2026-01-25T23:03:50.555Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["for","for-loop","macro","macros","macros-rust","rust","rust-crate","rust-lang","rust-library","rustlang"],"created_at":"2024-09-24T20:15:25.308Z","updated_at":"2026-01-26T00:06:58.920Z","avatar_url":"https://github.com/st4s1k.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c4\n\nRust C-like for-loop macro.\n\n```rust\nfn main() {\n    c4! {\n        for (let mut i = 1; i \u003c= 10; i += 1) {\n            println!(\"9 * {:\u003c2} = {}{}\", i, i - 1, 10 - i);\n        }\n    }\n    c4! {\n        for (\n            let (mut i, mut j) = (0, 0),\n            let mut s = \"some dummy word\".to_string();\n            i * j \u003c= s.len();\n            i += 1,\n            s = format!(\"{} {} {}\", \u0026s, i, j)\n        ) {\n            j += 1;\n            println!(\"i: {}; j: {}; s: {}\", i, j, s);\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst4s1k%2Frust-c4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst4s1k%2Frust-c4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst4s1k%2Frust-c4/lists"}