{"id":25457423,"url":"https://github.com/seedyrom/enum-display","last_synced_at":"2025-11-02T12:30:32.804Z","repository":{"id":60328047,"uuid":"542391997","full_name":"SeedyROM/enum-display","owner":"SeedyROM","description":"Macro for implementing std::fmt::Display on enum variants. Over 500K crates.io downloads!","archived":false,"fork":false,"pushed_at":"2024-02-09T08:47:07.000Z","size":26,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T02:18:11.347Z","etag":null,"topics":["proc-macro","proc-macro-derive","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/enum-display","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/SeedyROM.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-09-28T03:32:15.000Z","updated_at":"2025-01-28T04:41:58.000Z","dependencies_parsed_at":"2024-06-18T22:34:21.540Z","dependency_job_id":"e94f31aa-e435-4f5d-8e1f-fce02d3eb5f6","html_url":"https://github.com/SeedyROM/enum-display","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"b158608a3998f8705e438becf5f0cab8eea6ed97"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeedyROM%2Fenum-display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeedyROM%2Fenum-display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeedyROM%2Fenum-display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeedyROM%2Fenum-display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeedyROM","download_url":"https://codeload.github.com/SeedyROM/enum-display/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394714,"owners_count":19631122,"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":["proc-macro","proc-macro-derive","rust"],"created_at":"2025-02-18T02:17:30.999Z","updated_at":"2025-11-02T12:30:32.767Z","avatar_url":"https://github.com/SeedyROM.png","language":"Rust","readme":"# `enum-display`\n\n[![GitHub](https://img.shields.io/badge/github-enum--display-8da0cb?logo=github)](https://github.com/SeedyROM/enum-display)\n[![crates.io version](https://img.shields.io/crates/v/enum-display.svg)](https://crates.io/crates/enum-display)\n[![docs.rs docs](https://docs.rs/enum-display/badge.svg)](https://docs.rs/enum-display)\n[![crates.io version](https://img.shields.io/crates/l/enum-display.svg)](https://github.com/SeedyROM/enum-display/blob/main/LICENSE)\n[![CI build](https://github.com/SeedyROM/enum-display/actions/workflows/rust.yml/badge.svg)](https://github.com/SeedyROM/enum-display/actions)\n\n`enum-display` is a crate for implementing `std::fmt::Display` on enum variants with macros.\n\n# Simple Example\n\n```rust\nuse enum_display::EnumDisplay;\n\n#[derive(EnumDisplay)]\nenum Color {\n  Red,\n  Green,\n  Blue,\n}\n\nassert_eq!(Color::Red.to_string(), \"Red\");\nassert_eq!(Color::Green.to_string(), \"Green\");\nassert_eq!(Color::Blue.to_string(), \"Blue\");\n```\n\n# Example With Custom Case Transform\n\nAny case from [convert_case](https://docs.rs/convert_case/latest/convert_case/) is supported.\n\n```rust\nuse enum_display::EnumDisplay;\n\n#[derive(EnumDisplay)]\n#[enum_display(case = \"Kebab\")]\nenum Message {\n    HelloGreeting { name: String },\n}\n\nassert_eq!(Message::HelloGreeting { name: \"Alice\".to_string() }.to_string(), \"hello-greeting\");\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseedyrom%2Fenum-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseedyrom%2Fenum-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseedyrom%2Fenum-display/lists"}