commit | 02fa4f8913d854db9395d72a96fab8402cac9952 | [log] [tgz] |
---|---|---|
author | David Drysdale <[email protected]> | Sun May 29 08:19:35 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sun May 29 08:19:35 2022 +0000 |
tree | 6893ed330790aae053f2788b99cf971e5d559e79 | |
parent | ba87286a182c0b1931c8b4f36c1b4138683be512 [diff] | |
parent | 5d803ade1c2b3325acd6fb00d1f31217030703a6 [diff] |
Make crate vendor_available am: c04566a36b am: 09310b6e4a am: 8dc9c119b5 am: 5d803ade1c Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2106325 Change-Id: Ia8b06f795060a16b55777d6fb3a86d77e0dacedc 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