commit | ba87286a182c0b1931c8b4f36c1b4138683be512 | [log] [tgz] |
---|---|---|
author | Hasini Gunasinghe <[email protected]> | Thu May 19 17:06:54 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu May 19 17:06:54 2022 +0000 |
tree | 637528226ec2c16943147d948fb1d1597b6f1e70 | |
parent | 525a0dd9ae3269ccd7bd5db2a402195f67c5dd7a [diff] | |
parent | f20684e8daaf7afbaa026f951c13b52c80a1ae49 [diff] |
Restrict the import of std crate to dylib only. am: eaeefa6490 am: 18506cfdbc am: a533ecddca am: f20684e8da Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2097481 Change-Id: I5e76ecf503838e232ffcd6e271e208cf51f61b20 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