diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2023-02-15 23:21:52 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:35:19 +0100 |
| commit | 002d0b0d1685473f0f81cd17346d119fc671ad9c (patch) | |
| tree | 2242089794c6c38a994259dd9640f82fc708d14a /rtic-monotonics/Cargo.toml | |
| parent | 60d5e9e1db24fd1e0456949c90464e5fd52d20fe (diff) | |
Make embedded-hal-async dependency optional for better compatibility with HALs
Some hals implement traits for embedded-hal version `=1.0.0.alpha.<not 9>`, which is
explicitly incompatible with the version `=1.0.0.alpha.9` which embedded-hal-async
depends on. Making the dependency optional allows downstream projects to include
rtic-monotonic without requiring that all of their other libraries also implement
that specific version of embedded-hal 1.0
Diffstat (limited to 'rtic-monotonics/Cargo.toml')
| -rw-r--r-- | rtic-monotonics/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index 0c942a2..d60b68c 100644 --- a/rtic-monotonics/Cargo.toml +++ b/rtic-monotonics/Cargo.toml @@ -18,7 +18,7 @@ license = "MIT OR Apache-2.0" [dependencies] rtic-time = { version = "1.0.0-alpha.0", path = "../rtic-time" } -embedded-hal-async = "0.2.0-alpha.0" +embedded-hal-async = { version = "0.2.0-alpha.0", optional = true } fugit = { version = "0.3.6" } atomic-polyfill = "1" cfg-if = "1.0.0" |
