commit | b7faf345e74060abed6251ddbcbef0e16926169f | [log] [tgz] |
---|---|---|
author | Dmitry Avershin <[email protected]> | Wed Aug 28 06:46:13 2024 +0000 |
committer | Dmitry Avershin <[email protected]> | Wed Aug 28 06:46:13 2024 +0000 |
tree | a9dc2703ec0d79ea9c1722b17c7779250dd58adc | |
parent | b99db4a687646c30c704f0b118511d2d74961c03 [diff] |
Marks itoa available in OEM apexes. Updates cargo_embargo.json file to prevent apex_available changes from being lost after crate is updated. Change-Id: Iae8eb8518e900864a597e7e369c8fc7665fe216c Test: m Bug: 346735862
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"); }