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