commit | ac72b5e2b05dd1954ee6e4328c1955e591d26979 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Fri May 12 21:29:25 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri May 12 21:29:25 2023 +0000 |
tree | d878ed1bb3d1ad0cf168026f2aa8104f3ddb4ced | |
parent | d981a1042039c244d6e3559595da306499e32b6b [diff] | |
parent | fb7b02016eed62936b20202bba517f23908c7385 [diff] |
Use new no-std flag to cargo2android. am: 848421d1f0 am: cb6b18af61 am: 9e25f5e1b0 am: 514505b3ba am: fb7b02016e Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2584580 Change-Id: I7ebb81bc436f60abe65ebc53b085b0b35ce25de7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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