[package] name = "button-driver" version = "0.2.2" edition = "2021" authors = ["maxwase", "Max T "] description = "Advanced button handling crate" keywords = ["embedded", "button", "no_std", "esp32", "switch"] categories = ["embedded"] license = "MIT" repository = "https://github.com/maxwase/button-driver" readme = "README.md" exclude = [".*"] [package.metadata.docs.rs] features = ["std"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] embassy-time = { version = "0.3.2", optional = true } embedded-hal-old = { package = "embedded-hal", version = "0.2.7", optional = true } embedded-hal = { version = "1.0.0", optional = true } [dev-dependencies] parking_lot = "0.12.3" [features] embassy = ["dep:embassy-time"] embedded_hal_old = ["dep:embedded-hal-old", "embedded-hal-old/unproven"] # Backward compatibility. Previously `esp-idf-hal` did not support `embedded-hal` traits. esp = ["dep:embedded-hal"] embedded_hal = ["dep:embedded-hal"] std = []