{"id":20526287,"url":"https://github.com/lizelive/collections_macros","last_synced_at":"2026-04-24T03:36:15.543Z","repository":{"id":57608348,"uuid":"460291665","full_name":"lizelive/collections_macros","owner":"lizelive","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-17T05:24:42.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T06:56:46.459Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lizelive.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}},"created_at":"2022-02-17T05:18:04.000Z","updated_at":"2022-02-17T05:19:34.000Z","dependencies_parsed_at":"2022-09-03T10:00:55.867Z","dependency_job_id":null,"html_url":"https://github.com/lizelive/collections_macros","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizelive%2Fcollections_macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizelive%2Fcollections_macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizelive%2Fcollections_macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizelive%2Fcollections_macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lizelive","download_url":"https://codeload.github.com/lizelive/collections_macros/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242133343,"owners_count":20077095,"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-11-15T23:13:30.835Z","updated_at":"2026-04-24T03:36:10.509Z","avatar_url":"https://github.com/lizelive.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"some macros for dicts\n\ncreates `hashmap`, `hashset`, `btreeset`, `btreemap`\n\nmap has two sytaxts\n\n\n\n```rust\nlet a = 1;\nlet b = 2;\nhashmap![\n    a: a+b,\n    b: b\n],\n```\nis equal to\n```rust\nstd::collections::HashMap::from([(a, a), (b, a + b)])\n```\n\nbut if you dont include commas it acts like yml and gets names from ident\n```rust\nhashmap![\n    a: a+b\n    b: b\n],\n```\nis equal to\n```rust\nstd::collections::HashMap::from([(\"a\", a + b), (\"b\", b)])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizelive%2Fcollections_macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flizelive%2Fcollections_macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizelive%2Fcollections_macros/lists"}