commit | 4e86e8fcee6a681cf21bf572d25392a61fe99ee9 | [log] [tgz] |
---|---|---|
author | Per Larsen <[email protected]> | Thu Nov 09 01:18:27 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Nov 09 01:18:27 2023 +0000 |
tree | 42862a95d41484723727066fcd8dd5567412ddbb | |
parent | f7c63f2836fab8af1669fa4dbc7ad0eacdb32702 [diff] | |
parent | 6d9255490fc84ed3069db1f8bcd0a4389b25b504 [diff] |
Adding autogenerated Trusty makefile rules am: 4f87ec0658 am: 6d9255490f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2751865 Change-Id: I5ebd2d3c47d3ac05db2625c94380f2f895f48809 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