commit | 1a1a6b9c78687d8d6b94fdf8aee89ae0129713c4 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <[email protected]> | Tue Mar 07 17:23:32 2023 -0800 |
committer | Matthew Maurer <[email protected]> | Tue Mar 07 17:23:32 2023 -0800 |
tree | 567bc5f6ef4c9372696cd6f45006bd082d225f96 | |
parent | 4f0b0a101d3076145802b181fcd60c3a015464e1 [diff] |
Make ciborium-io available to product and vendor Bug: 270690570 Test: mma in external/rust/crates Change-Id: I34f1efd8ea61a90316a60e9e60b5b0f559e83ead
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