fixed async/sync usage

This commit is contained in:
2026-01-26 14:57:55 +01:00
parent a7e9d2768b
commit 63171eb290
6 changed files with 30 additions and 31 deletions

View File

@@ -9,11 +9,10 @@ repository = "https://git.kapelle.org/niklas/as7265x-rust"
homepage = "https://git.kapelle.org/niklas/as7265x-rust"
[dependencies]
embedded-hal = "1.0.0"
maybe-async = { version = "0.2.10", features=["is_sync"]}
embedded-hal = { version = "1.0.0", optional = true }
maybe-async = { version = "0.2.10" }
embedded-hal-async = { version = "1.0.0", optional = true }
embedded-hal-async = { version = "1.0.0" }
[features]
async = [ "embedded-hal-async" ]
sync = ["embedded-hal", "maybe-async/is_sync"]