commit | eafbe659e7a105cecdde4f43b19dc9ccff6a6737 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed Aug 14 18:59:48 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed Aug 14 19:31:22 2024 +0000 |
tree | a31c71ec7f3fcc145934db6dc3189a605071b594 | |
parent | 9d28278ca09ede16b1b287edb32c1b73bf60ff13 [diff] |
Migrate 25 crates to monorepo async-stream async-stream-impl async-task async-trait atomic atty axum bencher bincode bitreader bstr buddy_system_allocator byteorder bytes camino cast cesu8 cexpr cfg-if ciborium ciborium-io ciborium-ll clap_complete clap_derive clap_lex Bug: 339424309 Test: treehugger Change-Id: I4183ad3a29b97c57895c2f7137ddc1c5fd219a55
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