commit | 8dea2a054446b1a88e519748009e1476d3f7877f | [log] [tgz] |
---|---|---|
author | Aditya Belsare <[email protected]> | Tue Feb 01 01:53:03 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Feb 01 01:53:03 2022 +0000 |
tree | 1ae5c633ebe5c89250f44c8dabb9c8c996f0c6dd | |
parent | dc70373e70a9b53b373c565eb9e5298461f3beb0 [diff] | |
parent | e1d0820644db987914d699ab693f0b82e03fa678 [diff] |
Import ciborium-io crate. am: 668434006b am: add1557966 am: e1d0820644 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/1967059 Change-Id: I6b8c1ef8aab5427ab122afe60478a3c3a93ea7d8
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