Disallow multiple esp-hal-common versions (#934)

This commit is contained in:
Dániel Buga 2023-11-14 11:31:34 +01:00 committed by GitHub
parent 957b232413
commit 7084a380a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- C2, C3: atomic emulation trap is now opt-in (#904)
- Improve DMA documentation & clean up module (#915)
- Only allow a single version of `esp-hal-common` to be present in an application (#934)
### Fixed

View File

@ -11,6 +11,13 @@ description = "HAL implementations for peripherals common among Espressif devic
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
# Prevent multiple copies of this crate in the same binary.
# Needed because different copies might get different features, causing
# confusing build errors due to expected features not getting enabled
# on the unintentional copy.
# This is especially common when mixing crates from crates.io and git.
links = "esp-hal-common"
[dependencies]
bitflags = "2.4.1"
bitfield = "0.14.0"