Skip to content

Commit b196615

Browse files
authored
Update crates and examples (#17)
1 parent 1c3a520 commit b196615

File tree

9 files changed

+96
-120
lines changed

9 files changed

+96
-120
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
run: cargo clippy -- -D warnings
4242

4343
- name: Tests
44-
run: cargo test test --features std
44+
run: cargo test tests --features std

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "button-driver"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
authors = ["maxwase", "Max T <[email protected]>"]
66
description = "Advanced button handling crate"
@@ -17,17 +17,17 @@ features = ["std"]
1717
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1818

1919
[dependencies]
20-
esp-idf-hal = { version = "0.43.1", optional = true }
21-
embassy-time = { version = "0.3.0", optional = true }
20+
embassy-time = { version = "0.3.2", optional = true }
2221
embedded-hal-old = { package = "embedded-hal", version = "0.2.7", optional = true }
2322
embedded-hal = { version = "1.0.0", optional = true }
2423

2524
[dev-dependencies]
26-
parking_lot = "0.12.2"
25+
parking_lot = "0.12.3"
2726

2827
[features]
29-
esp = ["dep:esp-idf-hal"]
3028
embassy = ["dep:embassy-time"]
3129
embedded_hal_old = ["dep:embedded-hal-old", "embedded-hal-old/unproven"]
30+
# Backward compatibility. Previously `esp-idf-hal` did not support `embedded-hal` traits.
31+
esp = ["dep:embedded-hal"]
3232
embedded_hal = ["dep:embedded-hal"]
3333
std = []

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can easily flash them using `cargo run` command!
1515

1616
For **ESP32C3** with std:
1717

18-
Required features: `std`, `esp`
18+
Required features: `std`, `embedded_hal`
1919
```rust
2020
use std::time::Instant;
2121

0 commit comments

Comments
 (0)