commit | c81d500f6161bd8e6ec3a67be52f5950097dd50e | [log] [tgz] |
---|---|---|
author | Bob Badour <[email protected]> | Thu Feb 10 10:59:29 2022 -0800 |
committer | Bob Badour <[email protected]> | Thu Feb 10 10:59:29 2022 -0800 |
tree | 922037dec6ecfe4a4cb2bf9ab0eeeb8a5b3cbc29 | |
parent | 8e269e8e9ac7c4676ba1d1b3905d0734c632ac94 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/ciborium-io Added SPDX-license-identifier-Apache-2.0 to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Change-Id: I002254043feeca26ee0c5226ab645161350b0603
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