commit | da4456e91bba34e643cc15ef60f37b57045442e1 | [log] [tgz] |
---|---|---|
author | Aditya Belsare <[email protected]> | Wed Feb 09 03:48:11 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Feb 09 03:48:11 2022 +0000 |
tree | 9df07ed699ae737f023a757b7f5e8e70dfe7c292 | |
parent | 280d0e3e4e1287039f0e49eb40ff17e61a9324c8 [diff] | |
parent | 9df5ae6b05afacdc76e470c32de117ffc978fb09 [diff] |
Enable feature std in ciborium-io am: 8e269e8e9a am: 6a90a30f14 am: fdec6a9480 am: 9df5ae6b05 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/1976772 Change-Id: I5cdc8504ad2af33018179673e3f00184523acca2
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