[package] name = "embassy-dht-sensor" version = "0.1.3" edition = "2021" authors = ["Mark Berner"] license = "MIT OR Apache-2.0" homepage = "https://github.com/mark2b/embassy-dht-sensor" description = "DHT sensor driver for the Embassy async runtime" readme = "README.md" [features] default = ["rp2040", "dht2x"] rp2040 = ["dep:embassy-rp"] examples = ["dep:defmt", "dep:defmt-rtt", "dep:panic-probe"] dht1x = [] dht2x = [] [[example]] name = "read-dht-sensor-rp" path = "examples/read-dht-sensor-rp.rs" required-features = ["rp2040", "examples", "dht2x"] [lib] name = "embassy_dht_sensor" path = "src/lib.rs" [dependencies] cortex-m = { version = "0.7", features = ["inline-asm"] } cortex-m-rt = "0.7" embedded-hal = { version = "1.0.0" } embedded-hal-async = { version = "1.0.0" } embassy-embedded-hal = { version = "0.2", features = ["defmt"] } embassy-executor = { version = "0.6", features = ["arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers", "task-arena-size-32768"] } embassy-futures = { version = "0.1.0" } embassy-sync = { version = "0.6.0", features = ["defmt"] } embassy-time = { version = "0.3.0", features = ["defmt", "defmt-timestamp-uptime"] } critical-section = { version = "1.2" } embassy-rp = { version = "0.2", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl"], optional = true } defmt = { version = "0.3", optional = true } defmt-rtt = { version = "0.4", optional = true } panic-probe = { version = "0.3", features = ["print-defmt"], optional = true }