{"id":26010473,"url":"https://github.com/jdonszelmann/label","last_synced_at":"2025-07-25T09:43:30.493Z","repository":{"id":54650339,"uuid":"275158849","full_name":"jdonszelmann/label","owner":"jdonszelmann","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-05T20:54:47.000Z","size":57,"stargazers_count":16,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:06:17.543Z","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/jdonszelmann.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}},"created_at":"2020-06-26T13:10:08.000Z","updated_at":"2022-07-23T13:26:41.000Z","dependencies_parsed_at":"2022-08-13T22:50:20.257Z","dependency_job_id":null,"html_url":"https://github.com/jdonszelmann/label","commit_stats":null,"previous_names":["jdonszelmann/label","jonay2000/label"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdonszelmann%2Flabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdonszelmann%2Flabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdonszelmann%2Flabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdonszelmann%2Flabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdonszelmann","download_url":"https://codeload.github.com/jdonszelmann/label/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117657,"owners_count":20074436,"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":"2025-03-05T22:50:43.897Z","updated_at":"2025-03-05T22:50:44.627Z","avatar_url":"https://github.com/jdonszelmann.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Label\n\n![](https://img.shields.io/crates/v/label)\n![](https://docs.rs/label/badge.svg)\n![](https://github.com/jonay2000/label/workflows/label/badge.svg)\n\n`label` is a library that can be used to create custom attributes for functions, through which you can list them and perform actions on them.\nLabel uses no global state during the compilation process, to avoid incremental compilation breaking it.\n\n# Example\n\n```rust\n\ncreate_label!(fn test() -\u003e ());\n\n#[test::label]\nfn my_fn() {\n    println!(\"Test!\");\n}\n\nfn main() {\n    println!(\"calling all 'test' label\");\n    // using iter you can go through all functions with this annotation.\n    for i in test::iter() {\n        i();\n    }\n}\n\n```\n\nLabel also supports labels on `static` and `const` variables, and iterating over the names of labeled items.\nFor more information about this, visit the [docs](https://docs.rs/label)\n\n## Contributing\n\nAny contributions are welcome. Just make a pull request or issue and I will try to respond as soon as possible.\n\n### License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdonszelmann%2Flabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdonszelmann%2Flabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdonszelmann%2Flabel/lists"}