commit | eb2b79a7c27e04dcab8c553a66f48dd2c74692cc | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed May 08 21:49:45 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed May 08 21:49:45 2024 +0000 |
tree | 8d2e4ee1cd21a39294190c098863c9b632beb35a | |
parent | 15dc26204f3a5915bf189bb66b9f67371ee6d873 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: Ie80ac359f4d6bcbf8e698a0b594cd69d189e8b6a
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"); }