commit | f9bf3de0f31c2c4cf257c99b570fa79b8373c0cc | [log] [tgz] |
---|---|---|
author | Alan Stokes <[email protected]> | Tue May 02 10:48:55 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue May 02 10:48:55 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | c98ced3f9e2267900ddee654d77caa4e19612f98 [diff] | |
parent | 275646277700efc41ab7e914810b53d65fd0e1a7 [diff] |
Add alloc to ciborium-io no_std am: 2756462777 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2574598 Change-Id: I0f281ab20234c91c57fbd474e6a9500809596b13 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