-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
33 lines (28 loc) · 1.02 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[package]
name = "button-driver"
version = "0.2.2"
edition = "2021"
authors = ["maxwase", "Max T <[email protected]>"]
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 = []