commit | 0ce0ec24401cc3fd55756f50058d2d3feb500d24 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Mon Apr 08 18:52:12 2024 |
committer | David Tolnay <dtolnay@gmail.com> | Mon Apr 08 18:52:12 2024 |
tree | a187377aa321de9e0f036e81205c6dd34725ff1f | |
parent | 8f392032fadf15b5e6b9b7b6add21875575d67af [diff] |
Revert "Temporarily disable miri on doctests" This reverts commit d5e45f22733ddc65513fb050c2c75425f5df653d.
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"
fn main() { let mut buffer = itoa::Buffer::new(); let printed = buffer.format(128u64); assert_eq!(printed, "128"); }