Sha256: 5f221596a79c549aff0c4700de4997d152e1f66500726834c343a69721ee7d17

Contents?: true

Size: 1.33 KB

Versions: 11

Compression:

Stored size: 1.33 KB

Contents

# embedded-io

[![Documentation](https://docs.rs/embedded-io/badge.svg)](https://docs.rs/embedded-io)

IO traits for embedded systems.

Rust's `std::io` traits are not available in `no_std` targets, mainly because `std::io::Error`
requires allocation. This crate contains replacement equivalent traits, usable in `no_std`
targets.

The only difference with `std::io` is `Error` is an associated type. This allows each implementor 
to return its own error type, while avoiding `dyn` or `Box`. This is how errors are handled in [`embedded-hal`](https://github.com/rust-embedded/embedded-hal/).

Async variations of the traits are also available, returning futures using generic associated types.
Note this design is significantly different from both `futures::io` and `tokio::io`. The result is much
more ergonomic, at the expense of requiring nightly.


## License

This work is licensed under either of

- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
  <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)

at your option.

## Contribution

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.

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-28.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-27.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-26.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-25.0.2 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-25.0.1 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-25.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-24.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-23.0.2 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-22.0.0 ./ext/cargo-vendor/embedded-io-0.4.0/README.md
wasmtime-21.0.1 ./ext/cargo-vendor/embedded-io-0.4.0/README.md