Release 1.0.6
Release 1.0.6
2 files changed
tree: 770c29df1a35d90841de6f368aa557e9d548aeab
  1. .github/
  2. benches/
  3. chart/
  4. fuzz/
  5. src/
  6. tests/
  7. .clippy.toml
  8. .gitignore
  9. Cargo.toml
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. performance.png
  13. README.md
README.md

itoa

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+

[dependencies]
itoa = "1.0"

Example

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

Performance (lower is better)

performance

License