Bug: 166632747

Clone this repo:
  1. 87401d8 Upgrade itoa to 1.0.5 by Jeff Vander Stoep · 3 days ago master
  2. 9ca2be7 Update TEST_MAPPING by Jeff Vander Stoep · 6 days ago
  3. b3890a5 Update TEST_MAPPING by David Brazdil · 13 days ago
  4. c5f7f6f Merge "Upgrade itoa to 1.0.4" by Treehugger Robot · 8 weeks ago main-16k-with-phones
  5. 0e806b4 Upgrade itoa to 1.0.4 by Jeff Vander Stoep · 8 weeks ago


This crate provides a fast conversion of integer primitives to decimal strings. The implementation comes straight from libcore but avoids the performance penalty of going through core::fmt::Formatter.

See also ryu for printing floating point primitives.

Version requirement: rustc 1.36+

itoa = "1.0"


fn main() {
    let mut buffer = itoa::Buffer::new();
    let printed = buffer.format(128u64);
    assert_eq!(printed, "128");

Performance (lower is better)