commit | 280d0e3e4e1287039f0e49eb40ff17e61a9324c8 | [log] [tgz] |
---|---|---|
author | Aditya Belsare <asbel@google.com> | Sat Feb 05 00:55:24 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Feb 05 00:55:24 2022 +0000 |
tree | 1c721d4cabcf91af10d91a1f908a18191572cdfe | |
parent | 59f6045fb7b9b74f8dfd983ce9de48933ec05358 [diff] | |
parent | 56f166401f8d62d8451db14517fe11704b791578 [diff] |
Enable feature alloc when building ciborium-io am: e3e8fc8573 am: 9261916ddb am: 3c2020ba1f am: 56f166401f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/1973579 Change-Id: I21254ea30e970bb9892a662c1295e16d4896ab84
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