commit | fb7b02016eed62936b20202bba517f23908c7385 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Fri May 12 20:51:48 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri May 12 20:51:48 2023 +0000 |
tree | d878ed1bb3d1ad0cf168026f2aa8104f3ddb4ced | |
parent | e182ec42a167d469e400a6d3ae7498d3c9d5112d [diff] | |
parent | 514505b3baff6ffd1438152856d1f239909fef96 [diff] |
Use new no-std flag to cargo2android. am: 848421d1f0 am: cb6b18af61 am: 9e25f5e1b0 am: 514505b3ba Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2584580 Change-Id: I2b65d0f55d854dc598bca40d7ef54e555f9a7d56 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