Revert "Temporarily disable miri on doctests"

This reverts commit d5e45f22733ddc65513fb050c2c75425f5df653d.
1 file changed
tree: a187377aa321de9e0f036e81205c6dd34725ff1f
  1. .github/
  2. benches/
  3. chart/
  4. fuzz/
  5. src/
  6. tests/
  7. .gitignore
  8. Cargo.toml
  9. LICENSE-APACHE
  10. LICENSE-MIT
  11. performance.png
  12. 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