{"id":17396375,"url":"https://github.com/ibraheemdev/derive-alias","last_synced_at":"2025-04-15T15:36:08.592Z","repository":{"id":57618056,"uuid":"356053932","full_name":"ibraheemdev/derive-alias","owner":"ibraheemdev","description":"Alias mutliple derives as one.","archived":false,"fork":false,"pushed_at":"2024-11-30T19:46:08.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T01:18:35.820Z","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/ibraheemdev.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":"2021-04-08T21:35:10.000Z","updated_at":"2024-11-30T19:46:12.000Z","dependencies_parsed_at":"2024-07-10T10:19:42.398Z","dependency_job_id":"192a86e7-1f79-43d5-bc8f-1af5d354cb2f","html_url":"https://github.com/ibraheemdev/derive-alias","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/ibraheemdev%2Fderive-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibraheemdev%2Fderive-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibraheemdev%2Fderive-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibraheemdev%2Fderive-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibraheemdev","download_url":"https://codeload.github.com/ibraheemdev/derive-alias/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249098974,"owners_count":21212588,"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-16T12:57:50.448Z","updated_at":"2025-04-15T15:36:08.572Z","avatar_url":"https://github.com/ibraheemdev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `derive-alias`\n\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/derive-alias?style=for-the-badge\" height=\"25\"\u003e](https://crates.io/crates/derive-alias)\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-derive--alias-blue?style=for-the-badge\" height=\"25\"\u003e](https://github.com/ibraheemdev/derive-alias)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/docsrs/derive-alias?style=for-the-badge\" height=\"25\"\u003e](https://docs.rs/derive-alias)\n\nProvides a way to alias mutliple derives as one.\n\n```rust\nuse derive_alias::derive_alias;\n\n// Generates a macro (`derive_cmp`) that will attach the listed derives to a given item\nderive_alias! {\n    derive_cmp =\u003e #[derive(Eq, PartialEq, Ord, PartialOrd)]\n}\n\n// Attach the derives to `Foo`\nderive_cmp! { struct Foo; }\n```\n\nYou can create multiple aliases at a time.\n\n```rust\nuse derive_alias::derive_alias;\n\nderive_alias! {\n    derive_cmp =\u003e #[derive(Eq, PartialEq, Ord, PartialOrd)],\n    derive_other =\u003e #[derive(Copy, Clone)]\n}\n\nderive_cmp! { struct Foo; }\nderive_other! { struct Bar; }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibraheemdev%2Fderive-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibraheemdev%2Fderive-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibraheemdev%2Fderive-alias/lists"}