commit | e390b0dcd422417b0e1ff8a0ade16145f9a7c2e0 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Oct 03 17:18:32 2024 +0000 |
committer | James Farrell <[email protected]> | Thu Oct 03 17:18:32 2024 +0000 |
tree | 54bef00b0556b7eb4af97f97701ede5eb5fe1517 | |
parent | 015881526c420d7bd7047fa0e86a31dc9d02842a [diff] |
Fix cargo_embargo.json and regenerate Android.bp Bug: http://b/339424309 Test: treehugger Change-Id: I93861364b77705c725c30cebcc78d4e4fefcec86
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"); }