commit | 512206ced8088dc1eb3c4b56dff3cb36d1660d1c | [log] [tgz] |
---|---|---|
author | David Drysdale <[email protected]> | Thu Jun 22 14:48:52 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Jun 22 14:48:52 2023 +0000 |
tree | 9ae1a3bccadc9a2481046c76c1a7e33d58b390da | |
parent | ac72b5e2b05dd1954ee6e4328c1955e591d26979 [diff] | |
parent | e06855e8168fd52a3e276453d1dfd216e2cd9b69 [diff] |
Merge "Upgrade ciborium-io to 0.2.1" am: 670e2b1bc5 am: 68af8c5630 am: 9ef421053a am: d942f01b05 am: e06855e816 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2625933 Change-Id: I3d5f9484c9abfefd4791ed7136610efbd05e035d 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