Bug: 175869277

Clone this repo:
  1. 95cb4d5 Migrate 25 crates to monorepo by James Farrell · 4 months ago main master
  2. 8ddbef5 Update Android.bp by running cargo_embargo by James Farrell · 4 months ago
  3. 1f4ebb5 Update Android.bp by running cargo_embargo am: 34823e6b23 am: 43c0b85fd8 by James Farrell · 8 months ago android15-automotiveos-dev android15-qpr1-release android15-qpr1-s3-release android15-qpr1-s4-release android15-qpr1-s5-release android15-tests-dev android-15.0.0_r10 android-15.0.0_r11 android-15.0.0_r12 android-15.0.0_r13 android-15.0.0_r6 android-15.0.0_r7 android-15.0.0_r8 android-15.0.0_r9
  4. 43c0b85 Update Android.bp by running cargo_embargo am: 34823e6b23 by James Farrell · 8 months ago
  5. 34823e6 Update Android.bp by running cargo_embargo by James Farrell · 8 months ago

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