commit | 44d0cd799299d96e4160738a9aaaf6ffd928fc58 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <[email protected]> | Thu Mar 09 16:09:30 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Mar 09 16:09:30 2023 +0000 |
tree | 567bc5f6ef4c9372696cd6f45006bd082d225f96 | |
parent | d4b9a9584307942800fd56985d011eaf84dbd133 [diff] | |
parent | 00bb8f3eb5bb3b7f52a2779ce3fa48eb8193803b [diff] |
Make ciborium-io available to product and vendor am: 1a1a6b9c78 am: 00bb8f3eb5 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2474931 Change-Id: I2897c2b564823fc458a3a9e42c37106bf407cd51 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