Migrate 25 crates to monorepo

quickcheck
regex-automata
ryu
same-file
serde
serde_json
serde_spanned
serde_test
sharded-slab
shlex
siphasher
tinyvec
tinyvec_macros
tokio-io-timeout
toml
toml_datetime
toml_edit
uniffi
uniffi_checksum_derive
uniffi_meta
virtio-bindings
virtio-queue
virtio-vsock
vsock
vsprintf
zerocopy-derive

Bug: http://b/339424309
Test: treehugger
Change-Id: I7bce6cf97ad8e47b68b138d1565cb997892df4ca
3 files changed
tree: c39246725b5517f447e3989d20a2ca6efb908a92
  1. .github/
  2. benches/
  3. src/
  4. src-backup/
  5. tests/
  6. .cargo_vcs_info.json
  7. .gitignore
  8. Android.bp
  9. Cargo.toml
  10. Cargo.toml.orig
  11. CHANGELOG.md
  12. compare_benchmarks.py
  13. gen-array-impls.sh
  14. LICENSE-APACHE.md
  15. LICENSE-MIT.md
  16. LICENSE-ZLIB.md
  17. METADATA
  18. MODULE_LICENSE_APACHE2
  19. OWNERS
  20. README.md
  21. rustfmt.toml
README.md

License:Zlib Minimum Rust Version crates.io docs.rs

Unsafe-Zero-Percent

tinyvec

A 100% safe crate of vec-like types. #![forbid(unsafe_code)]

Main types are as follows:

  • ArrayVec is an array-backed vec-like data structure. It panics on overflow.
  • SliceVec is the same deal, but using a &mut [T].
  • TinyVec (alloc feature) is an enum that's either an Inline(ArrayVec) or a Heap(Vec). If a TinyVec is Inline and would overflow it automatically transitions to Heap and continues whatever it was doing.

To attain this “100% safe code” status there is one compromise: the element type of the vecs must implement Default.

For more details, please see the docs.rs documentation