{"id":33927123,"url":"https://github.com/danielschemmel/fmt-derive","last_synced_at":"2025-12-30T08:05:42.678Z","repository":{"id":59036358,"uuid":"533611223","full_name":"danielschemmel/fmt-derive","owner":"danielschemmel","description":"A better `#[derive(Debug, Display)]`","archived":false,"fork":false,"pushed_at":"2025-02-21T17:59:57.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-24T04:22:20.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/danielschemmel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-07T04:57:10.000Z","updated_at":"2025-06-02T01:43:24.000Z","dependencies_parsed_at":"2024-07-20T03:12:40.824Z","dependency_job_id":"31563305-3199-467a-b945-8747e9665f0e","html_url":"https://github.com/danielschemmel/fmt-derive","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"f0e19fee47c09bcf9907f33ddeecd2a72cc449c0"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/danielschemmel/fmt-derive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielschemmel%2Ffmt-derive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielschemmel%2Ffmt-derive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielschemmel%2Ffmt-derive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielschemmel%2Ffmt-derive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielschemmel","download_url":"https://codeload.github.com/danielschemmel/fmt-derive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielschemmel%2Ffmt-derive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27681201,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-12T10:44:22.465Z","updated_at":"2025-12-12T10:44:23.052Z","avatar_url":"https://github.com/danielschemmel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/fmt-derive?style=flat-square)](https://crates.io/crates/fmt_derive)\n[![docs.rs](https://img.shields.io/docsrs/fmt-derive?style=flat-square)](https://docs.rs/fmt-derive/latest/fmt_derive/)\n\nMore robust and versatile implementation of `derive(Debug)` and `derive(Display)`. Unlike the version of`derive(Debug)`\nin the standard library, these macros will always successfully generate an implementation - even if a member does not\nimplement `Debug`/`Display`. In that case, the generated implementation will print a replacement string of the form\n`\u003cTypeName\u003e`.\n\n```rust\nuse fmt_derive::Debug; // replacement for `use std::fmt::Debug;`\n\n// a type that implements neither `Debug` nor `Display`\nstruct Unprintable;\n\n#[derive(Debug, fmt_derive::Display)]\nstruct Printable {\n\t// unprintable members will be printed as `\u003cType\u003e`\n\tunprintable: Unprintable,\n\n\t// use `#[display(ignore)]` (or `#[debug(ignore]` respectively) to skip a member when printing\n\t#[display(ignore)]\n\tignored: u32,\n\n\t// use the `fmt` attribute to refer to both `Debug` and `Display` at once\n\t#[fmt(\"{:#08X}\", self.hex_number)]\n\thex_number: u32,\n}\n\nfn main() {\n\tlet printable = Printable{\n\t\thex_number: 0xDEADBEEF,\n\t\tignored: 42,\n\t\tunprintable: Unprintable,\n\t};\n\n\tassert_eq!(format!(\"{:?}\", printable), \"Printable { unprintable: \u003cUnprintable\u003e, ignored: 42, hex_number: 0xDEADBEEF }\");\n\tassert_eq!(format!(\"{}\", printable), \"Printable { unprintable: \u003cUnprintable\u003e, hex_number: 0xDEADBEEF }\");\n}\n```\n\n# `no_std`\nThis crate is `no_std` and can be used from both `no_std` and `std` contexts without any action required.\n\n# MSRV\nThe current MSRV is 1.69.0. For this project, it is primarily driven by the few dependencies it relies on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielschemmel%2Ffmt-derive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielschemmel%2Ffmt-derive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielschemmel%2Ffmt-derive/lists"}