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