embedded_hal_bus/
lib.rs

1#![doc = include_str!("../README.md")]
2#![warn(missing_docs)]
3#![cfg_attr(not(feature = "std"), no_std)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5// disable warning for already-stabilized features.
6// Needed to pass CI, because we deny warnings.
7// We don't immediately remove them to not immediately break older nightlies.
8// When all features are stable, we'll remove them.
9#![cfg_attr(all(feature = "async", nightly), allow(stable_features))]
10#![cfg_attr(
11    all(feature = "async", nightly),
12    feature(async_fn_in_trait, impl_trait_projections)
13)]
14
15// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
16#[cfg(feature = "defmt-03")]
17use defmt_03 as defmt;
18
19pub mod i2c;
20pub mod spi;
21pub mod util;