4 releases (2 breaking)
|0.6.1||Nov 29, 2023|
|0.6.0||Oct 3, 2023|
|0.5.0||Aug 7, 2023|
|0.0.0||Jul 17, 2023|
#1452 in Embedded development
420 downloads per month
Used in 5 crates
This project is developed and maintained by the HAL team.
The adapters are structs that wrap an I/O stream and implement another family of I/O traits
based on the wrapped streams. This allows "converting" from an
std::io::Read or vice versa, for example.
There are no separate adapters for
Write traits. Instead, a single
adapter implements the right traits based on what the inner type implements.
This allows using these adapters when using combinations of traits, like
std::iotraits. Needs the
Minimum Supported Rust Version (MSRV)
This crate is guaranteed to compile on stable Rust 1.60 and up. It might compile with older versions but that may change in any new patch release.
See here for details on how the MSRV may be upgraded.
Enabling any of the
futures-* Cargo features requires Rust nightly newer than
nightly-2022-11-22, due to requiring support for
async fn in traits (AFIT),
which is not stable yet. Keep in mind Rust nightlies can make backwards-incompatible
changes to unstable features at any time.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.