mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-17 21:35:20 +01:00
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
This commit is contained in:
parent
60d5e9e1db
commit
002d0b0d16
3 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue