commit | 4c6c87304130eb5d5c003e54b04eb1f28f700cc2 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue May 21 14:37:55 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue May 21 14:37:55 2024 +0000 |
tree | 43a77fe401f71474635250f8ab1a52c0d43c6485 | |
parent | a14795c28a277dec68e935f332be6fe766a43b3d [diff] | |
parent | bf55e719623a5a58e5ab32a4a3fb57a32f40e4e0 [diff] |
Update Android.bp by running cargo_embargo am: bf55e71962 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/3095422 Change-Id: I87974ac25497b132805f0e5d62747acc2b61747a 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