{"id":17036527,"url":"https://github.com/emoon/apigen","last_synced_at":"2025-03-22T22:45:17.533Z","repository":{"id":139858167,"uuid":"477258743","full_name":"emoon/apigen","owner":"emoon","description":"Basic API/data description lang + parser that can be used for generating API/data interfaces, etc","archived":false,"fork":false,"pushed_at":"2022-05-28T11:57:18.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T02:32:04.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/emoon.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}},"created_at":"2022-04-03T06:35:40.000Z","updated_at":"2022-11-03T09:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe9423a9-8eab-4d2d-a953-87ed73760b59","html_url":"https://github.com/emoon/apigen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fapigen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fapigen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fapigen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoon%2Fapigen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emoon","download_url":"https://codeload.github.com/emoon/apigen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245031362,"owners_count":20549913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-14T08:50:48.872Z","updated_at":"2025-03-22T22:45:17.510Z","avatar_url":"https://github.com/emoon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/emoon/apigen/workflows/Rust/badge.svg)](https://github.com/emoon/apigen/actions?workflow=Rust)\n\n# apigen\nBasic API/data description lang + parser that can be used for generating API/data interfaces, etc\n\nIt allows you to have structs like this\n\n```Rust\nstruct ImageInfo {\n    /// width of the image\n    width: u32,\n    /// height of the Image\n    height: u32,\n}\n\n#[attributes(Handle, Drop)]\nstruct Image {\n    /// Comments here \n    [static] create_from_file(filename: String) -\u003e Image?,\n    /// More comments \n    [static] create_from_memory(name: String, data: [u8]) -\u003e Image?,\n    /// Get data amout the image\n    [static] get_info(image: Image) -\u003e *const ImageInfo?,\n    /// Destroy the created image\n    destroy(),\n}\n```\n\nAnd it gets parsed into data structures. It's then up to the user to decide how to to write this data out. Some convinince functionally for C and Rust is provided as that is the primary target of this. The full grammar for this can be found here https://github.com/emoon/apigen/blob/main/src/api.pest","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoon%2Fapigen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femoon%2Fapigen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoon%2Fapigen/lists"}