commit | 7f7b7fca5e68c478fdc10e47f3338cda7349a553 | [log] [tgz] |
---|---|---|
author | David Drysdale <[email protected]> | Wed Jun 14 14:37:33 2023 +0100 |
committer | David Drysdale <[email protected]> | Wed Jun 14 14:45:00 2023 +0100 |
tree | 9ae1a3bccadc9a2481046c76c1a7e33d58b390da | |
parent | 848421d1f0850cb5abfea84f21bde96c416f07e4 [diff] |
Upgrade ciborium-io to 0.2.1 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/ciborium-io For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Manually tweaked to fix format of patches/std.diff Test: TreeHugger Change-Id: I2a2565cc67d43c7aad7235b4e094c549d781a893
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