commit | 56f166401f8d62d8451db14517fe11704b791578 | [log] [tgz] |
---|---|---|
author | Aditya Belsare <[email protected]> | Sat Feb 05 00:37:59 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sat Feb 05 00:37:59 2022 +0000 |
tree | 1c721d4cabcf91af10d91a1f908a18191572cdfe | |
parent | 8dea2a054446b1a88e519748009e1476d3f7877f [diff] | |
parent | 3c2020ba1fa1672dd6559dc2fa84f8b819880647 [diff] |
Enable feature alloc when building ciborium-io am: e3e8fc8573 am: 9261916ddb am: 3c2020ba1f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/1973579 Change-Id: Ib40db16b4092ad2240d2e58013921602dfdbc329
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