{"id":16892919,"url":"https://github.com/dtolnay/itoa","last_synced_at":"2026-04-01T18:59:43.283Z","repository":{"id":37334735,"uuid":"61962375","full_name":"dtolnay/itoa","owner":"dtolnay","description":"Fast function for printing integer primitives to a decimal string","archived":false,"fork":false,"pushed_at":"2025-03-03T23:42:53.000Z","size":535,"stargazers_count":325,"open_issues_count":3,"forks_count":39,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-08T00:04:48.188Z","etag":null,"topics":["performance","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtolnay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"dtolnay"}},"created_at":"2016-06-25T21:33:07.000Z","updated_at":"2025-05-06T23:56:15.000Z","dependencies_parsed_at":"2023-02-11T23:01:05.454Z","dependency_job_id":"9f209e78-3c2b-4f7e-ac04-536fccc2e485","html_url":"https://github.com/dtolnay/itoa","commit_stats":{"total_commits":238,"total_committers":13,"mean_commits":"18.307692307692307","dds":"0.10084033613445376","last_synced_commit":"7e6b2580b1ac3ad7d6f25887af01a09686c0ea5c"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Fitoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Fitoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Fitoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Fitoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtolnay","download_url":"https://codeload.github.com/dtolnay/itoa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973690,"owners_count":21834108,"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":["performance","rust"],"created_at":"2024-10-13T17:12:52.784Z","updated_at":"2026-04-01T18:59:43.275Z","avatar_url":"https://github.com/dtolnay.png","language":"Rust","funding_links":["https://github.com/sponsors/dtolnay"],"categories":[],"sub_categories":[],"readme":"itoa\n====\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-dtolnay/itoa-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/dtolnay/itoa)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/itoa.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/itoa)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs.rs-itoa-66c2a5?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/itoa)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/dtolnay/itoa/ci.yml?branch=master\u0026style=for-the-badge\" height=\"20\"\u003e](https://github.com/dtolnay/itoa/actions?query=branch%3Amaster)\n\nThis crate provides a fast conversion of integer primitives to decimal strings.\nThe implementation comes straight from [libcore] but avoids the performance\npenalty of going through [`core::fmt::Formatter`].\n\nSee also [`zmij`] for printing floating point primitives.\n\n[libcore]: https://github.com/rust-lang/rust/blob/1.92.0/library/core/src/fmt/num.rs#L190-L253\n[`core::fmt::Formatter`]: https://doc.rust-lang.org/std/fmt/struct.Formatter.html\n[`zmij`]: https://github.com/dtolnay/zmij\n\n```toml\n[dependencies]\nitoa = \"1.0\"\n```\n\n\u003cbr\u003e\n\n## Example\n\n```rust\nfn main() {\n    let mut buffer = itoa::Buffer::new();\n    let printed = buffer.format(128u64);\n    assert_eq!(printed, \"128\");\n}\n```\n\n\u003cbr\u003e\n\n## Performance\n\nThe [itoa-benchmark] compares this library and other Rust integer formatting\nimplementations across a range of integer sizes. The vertical axis in this chart\nshows nanoseconds taken by a single execution of\n`itoa::Buffer::new().format(value)` so a lower result indicates a faster\nlibrary.\n\n[itoa-benchmark]: https://github.com/dtolnay/itoa-benchmark\n\n![performance](https://raw.githubusercontent.com/dtolnay/itoa/master/itoa-benchmark.png)\n\n\u003cbr\u003e\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtolnay%2Fitoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtolnay%2Fitoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtolnay%2Fitoa/lists"}