Upgrade itoa to 1.0.10 am: 7a32db877f am: 15dc26204f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/itoa/+/2944226 Change-Id: I03f555cf5b03dff49174ce1fbc12c5a18b94079f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 
tree: ac3d3be89ecdf22430217ad0de9783cf725dbd6d
  1. .github/
  2. benches/
  3. patches/
  4. src/
  5. tests/
  6. .cargo_vcs_info.json
  7. .gitignore
  8. Android.bp
  9. Cargo.toml
  10. Cargo.toml.orig
  11. cargo_embargo.json
  12. LICENSE
  13. LICENSE-APACHE
  14. LICENSE-MIT
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. OWNERS
  18. README.md
  19. TEST_MAPPING
README.md

itoa

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" 

Example

fn main() { let mut buffer = itoa::Buffer::new(); let printed = buffer.format(128u64); assert_eq!(printed, "128"); } 

Performance (lower is better)

performance

License