wasi_embedded_hal/lib.rs
1//! Implementation of [`embedded-hal`] traits for the bindings generated from the `wasi-i2c` WIT.`
2//!
3//! [`embedded-hal`]: https://docs.rs/embedded-hal
4//! [`wasi-i2c`]: https://github.com/WebAssembly/wasi-i2c
5//!
6//! This crate provides support for an optional `no_std` environment.
7
8#![cfg_attr(not(feature = "use_std"), no_std)]
9
10#[cfg(feature = "use_alloc")]
11extern crate alloc;
12
13pub mod delay;
14pub mod i2c;