Migrate 25 crates to monorepo

itoa
percent-encoding
untrusted
arbitrary
nix
arc-swap
arrayvec
axum-core
bindgen-cli
cov-mark
equivalent
fixedbitset
foreign-types
foreign-types-shared
fxhash
http
hyper
kernlog
lazycell
libtest-mimic
libz-sys
merge
merge_derive
mls-rs
mls-rs-crypto-traits

Bug: http://b/339424309
Test: treehugger
Change-Id: I40a95e86e75eb3dc1b872154ecceba0074161d6a
3 files changed
tree: c96ceff2a9a4fe0e40611fad539e9e9aaea87795
  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. LICENSE
  12. LICENSE-APACHE
  13. LICENSE-MIT
  14. METADATA
  15. MODULE_LICENSE_APACHE2
  16. OWNERS
  17. README.md
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