Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
run: cargo clippy -- -D warnings

- name: Tests
run: cargo test test --features std
run: cargo test tests --features std
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "button-driver"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["maxwase", "Max T <[email protected]>"]
description = "Advanced button handling crate"
Expand All @@ -17,17 +17,17 @@ features = ["std"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
esp-idf-hal = { version = "0.43.1", optional = true }
embassy-time = { version = "0.3.0", optional = true }
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.2"
parking_lot = "0.12.3"

[features]
esp = ["dep:esp-idf-hal"]
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 = []
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can easily flash them using `cargo run` command!

For **ESP32C3** with std:

Required features: `std`, `esp`
Required features: `std`, `embedded_hal`
```rust
use std::time::Instant;

Expand Down
Loading
Loading