dht20/lib.rs
1// no_std; intended for embedded environments
2#![cfg_attr(not(test), no_std)]
3
4#[cfg(test)]
5extern crate std; // to permit testing in non-embedded environment
6
7pub mod dht20; // main dht20 module
8pub mod sensor_reading; // type-safe sensor reading struct; prevent mixing up Celsius and Fahrenheit
9mod utils; // utility functions for dht20
10
11// re-export for convenience
12pub use dht20::*;