embedded_hal/digital/mod.rs
1//! Digital I/O
2//!
3//!
4//!
5
6// Deprecated / infallible traits
7#[deprecated(
8 since = "0.2.2",
9 note = "Deprecated because the methods cannot return errors. \
10 Users should use the traits in digital::v2."
11)]
12pub mod v1;
13
14// New / fallible traits
15pub mod v2;
16
17// v2 -> v1 compatibility wrappers
18// These require explicit casts from v2 -> v1
19pub mod v1_compat;
20
21// v1 -> v2 compatibility shims
22// These are implicit over v1 implementations
23pub mod v2_compat;
24
25// Re-export old traits so this isn't a breaking change
26#[allow(deprecated)]
27pub use self::v1::*;