{"id":15684088,"url":"https://github.com/bash/fmtastic","last_synced_at":"2025-08-27T22:10:34.441Z","repository":{"id":169392153,"uuid":"645338463","full_name":"bash/fmtastic","owner":"bash","description":"A fantastic crate for formatting numbers using the appropriate unicode characters","archived":false,"fork":false,"pushed_at":"2024-12-12T11:23:56.000Z","size":58,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T21:45:12.466Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bash.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license-apache.txt","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,"zenodo":null}},"created_at":"2023-05-25T12:37:57.000Z","updated_at":"2025-06-17T23:39:39.000Z","dependencies_parsed_at":"2024-01-30T00:32:59.574Z","dependency_job_id":"128f261a-c4a2-4641-959f-a2b3044aff5e","html_url":"https://github.com/bash/fmtastic","commit_stats":null,"previous_names":["bash/fmtastic"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bash/fmtastic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash%2Ffmtastic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash%2Ffmtastic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash%2Ffmtastic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash%2Ffmtastic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bash","download_url":"https://codeload.github.com/bash/fmtastic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bash%2Ffmtastic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272284969,"owners_count":24906997,"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-08-27T02:00:09.397Z","response_time":76,"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":"2024-10-03T17:11:00.227Z","updated_at":"2025-08-27T22:10:34.354Z","avatar_url":"https://github.com/bash.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fmtastic ✨\n\n[![Docs](https://img.shields.io/docsrs/fmtastic/latest)](https://docs.rs/fmtastic)\n[![Crate Version](https://img.shields.io/crates/v/fmtastic)](https://crates.io/crates/fmtastic)\n\nA **fantastic**, `#![no_std]`-friendly crate for **fmt**ing numbers using the appropriate unicode characters via the [`Display`] trait. ✨\nFormat as vulgar fractions, super- and subscript and more.\n\nContributions are welcome for more formats.\n\n## Features\n\n### [Vulgar Fractions]\nCreates beautiful unicode fractions like ¼ or ¹⁰⁄₃.\n```rust\nuse fmtastic::VulgarFraction;\n\nassert_eq!(\"¹⁰⁄₃\", format!(\"{}\", VulgarFraction::new(10, 3)));\nassert_eq!(\"¼\", format!(\"{}\", VulgarFraction::new(1, 4)));\n```\n\n### Sub- and superscript\nFormats integers as sub- or superscript.\n\n```rust\nuse fmtastic::{Subscript, Superscript};\n\nassert_eq!(\"x₁\", format!(\"x{}\", Subscript(1)));\nassert_eq!(\"n²\", format!(\"n{}\", Superscript(2)));\n```\n\n### Roman Numerals\nFormats unsigned integers as Roman numerals.\n\n```rust\nuse fmtastic::Roman;\n\nassert_eq!(\"ⅾⅽⅽⅼⅹⅹⅹⅰⅹ\", format!(\"{:#}\", Roman::new(789_u16).unwrap())); // lowercase\nassert_eq!(\"ⅯⅯⅩⅩⅠⅤ\", format!(\"{}\", Roman::new(2024_u16).unwrap()));\nassert_eq!(\"MMXXIV\", format!(\"{}\", Roman::new(2024_u16).unwrap().ascii())); // ascii\nassert_eq!(\"ⅠⅠⅠ\", format!(\"{}\", Roman::from(3_u8))); // u8's can always be formatted as Roman numeral\n```\n\n### Seven-Segment Digits\nFormats an unsigned integer using seven-segment digits\nfrom the [Legacy Computing] block.\n\n```rust\nuse fmtastic::Segmented;\n\nassert_eq!(\"🯶🯲🯸\", format!(\"{}\", Segmented(628_u32)));\n```\n\n### Outlined\nFormats an unsigned integer using outlined digits\nfrom the [Legacy Computing Supplement] block.\n\n```rust\nuse fmtastic::Outlined;\n\nassert_eq!(\"𜳶𜳲𜳸\", format!(\"{}\", Outlined(628_u32)));\n```\n\n### Tally Marks\nFormats an unsigned integer as tally marks.\n```rust\nuse fmtastic::TallyMarks;\n\nassert_eq!(\"𝍷𝍷𝍷\", TallyMarks(3_u32).to_string());\nassert_eq!(\"𝍸𝍸𝍷𝍷\", TallyMarks(12_u32).to_string());\n```\n\n### Ballot Box\nFormats a boolean as a ballot box.\n\n```rust\nuse fmtastic::BallotBox;\n\nassert_eq!(\"☑ Buy bread\", format!(\"{} Buy bread\", BallotBox(true)));\nassert_eq!(\"☐ Do the dishes\", format!(\"{} Do the dishes\", BallotBox(false)));\nassert_eq!(\"☒ Laundry\", format!(\"{:#} Laundry\", BallotBox(true)));\n```\n\n## [Docs](https://docs.rs/fmtastic)\n\n## License\nLicensed under either of\n\n* Unlicense\n  ([unlicense.txt](unlicense.txt) or \u003chttps://unlicense.org/\u003e)\n* Apache License, Version 2.0\n  ([license-apache.txt](license-apache.txt) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license\n  ([license-mit.txt](license-mit.txt) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Contribution\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\nmulti-licensed as above, without any additional terms or conditions.\n\n\n[Legacy Computing]: https://www.unicode.org/charts/PDF/U1FB00.pdf\n[Legacy Computing Supplement]: https://www.unicode.org/charts/PDF/U1CC00.pdf\n[Vulgar Fractions]: https://en.wikipedia.org/wiki/Fraction_(mathematics)#Simple,_common,_or_vulgar_fractions\n[`Display`]: https://doc.rust-lang.org/std/fmt/trait.Display.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash%2Ffmtastic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbash%2Ffmtastic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash%2Ffmtastic/lists"}