commit | 876f7e9d539ca831080e640c1900b02f0c7ac758 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Mon May 20 17:00:58 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Mon May 20 17:00:58 2024 +0000 |
tree | c7d2adf22ebacd7021672ca3f6319658f3bdbf94 | |
parent | eb2b79a7c27e04dcab8c553a66f48dd2c74692cc [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I96022d225aa1d647117c8ffd0d20420d4bd68353
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"); }