commit | 9ef421053a2b7a8326e13c3611adc999245d2ca1 | [log] [tgz] |
---|---|---|
author | David Drysdale <[email protected]> | Thu Jun 22 12:35:14 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Jun 22 12:35:14 2023 +0000 |
tree | 9ae1a3bccadc9a2481046c76c1a7e33d58b390da | |
parent | 9e25f5e1b07cc2e042f792e6e137a447b402256d [diff] | |
parent | 68af8c5630c21622df8a2e622b3146a619e2f189 [diff] |
Merge "Upgrade ciborium-io to 0.2.1" am: 670e2b1bc5 am: 68af8c5630 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2625933 Change-Id: I9ed53ad7862b0e08f0dcd9ba7892938d7f94d7eb Signed-off-by: Automerger Merge Worker <[email protected]>
Simple, Low-level I/O traits
This crate provides two simple traits: Read
and Write
. These traits mimic their counterparts in std::io
, but are trimmed for simplicity and can be used in no_std
and no_alloc
environments. Since this crate contains only traits, inline functions and unit structs, it should be a zero-cost abstraction.
If the std
feature is enabled, we provide blanket implementations for all std::io
types. If the alloc
feature is enabled, we provide implementations for Vec<u8>
. In all cases, you get implementations for byte slices. You can, of course, implement the traits for your own types.
License: Apache-2.0