{"id":33933554,"url":"https://github.com/mira-neko/value-enum","last_synced_at":"2026-04-07T04:32:07.050Z","repository":{"id":59144950,"uuid":"529054590","full_name":"mira-neko/value-enum","owner":"mira-neko","description":"Macro for generating enums associated with values.","archived":false,"fork":false,"pushed_at":"2023-07-31T18:30:22.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T23:52:20.625Z","etag":null,"topics":["enums","macros-rust","rust"],"latest_commit_sha":null,"homepage":"","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/mira-neko.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":"2022-08-25T23:56:19.000Z","updated_at":"2023-08-04T08:09:57.000Z","dependencies_parsed_at":"2022-09-13T02:13:02.373Z","dependency_job_id":null,"html_url":"https://github.com/mira-neko/value-enum","commit_stats":null,"previous_names":["miralushch/value-enum"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mira-neko/value-enum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mira-neko%2Fvalue-enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mira-neko%2Fvalue-enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mira-neko%2Fvalue-enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mira-neko%2Fvalue-enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mira-neko","download_url":"https://codeload.github.com/mira-neko/value-enum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mira-neko%2Fvalue-enum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31500397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["enums","macros-rust","rust"],"created_at":"2025-12-12T13:05:05.864Z","updated_at":"2026-04-07T04:32:07.043Z","avatar_url":"https://github.com/mira-neko.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# value-enum [![](https://img.shields.io/crates/v/value-enum.svg)](https://crates.io/crates/value-enum) [![docs.rs](https://img.shields.io/docsrs/value-enum)](https://docs.rs/value-enum) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/miralushch/value-enum) ![Crates.io](https://img.shields.io/crates/d/value-enum) ![Crates.io](https://img.shields.io/crates/l/value-enum)\n\nMacro for generating enums associated with values.\n\n## Example\n\n```Rust\nuse value_enum::value_enum;\n\nvalue_enum!(\n  #[derive(Clone, Copy, PartialEq, Eq, Debug)]\n  enum Abc: char {\n    A = 'a',\n    B = 'b',\n    C = 'c',\n  }\n);\n\nassert_eq!(\n  char::from(Abc::A),\n  'a'\n);\n\nassert_eq!(\n  Abc::try_from('b'),\n  Ok(Abc::B)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmira-neko%2Fvalue-enum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmira-neko%2Fvalue-enum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmira-neko%2Fvalue-enum/lists"}