Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to select a version for embedded-hal #37

Open
weiying-chen opened this issue Feb 8, 2024 · 0 comments
Open

failed to select a version for embedded-hal #37

weiying-chen opened this issue Feb 8, 2024 · 0 comments

Comments

@weiying-chen
Copy link

weiying-chen commented Feb 8, 2024

I generated a project with this: https://github.com/esp-rs/esp-template (I selected esp32-c3).

Then I added bme280 (0.5.0) to my Cargo.toml. Then I built. I got this error:

error: failed to select a version for `embedded-hal`.
    ... required by package `embassy-time v0.2.0`
    ... which satisfies dependency `embassy-time = "^0.2"` of package `embassy-executor v0.4.0`
    ... which satisfies dependency `embassy-executor = "^0.4.0"` of package `esp-hal-common v0.14.0`
    ... which satisfies dependency `esp-hal-common = "^0.14.0"` of package `esp32c3-hal v0.14.0`
    ... which satisfies dependency `esp32c3-hal = "^0.14.0"` of package `esp-test v0.1.0 (/home/weiying-chen/rust/esp-test)`
versions that meet the requirements `=1.0.0-rc.2` are: 1.0.0-rc.2

all possible versions conflict with previously selected packages.

  previously selected package `embedded-hal v1.0.0`
    ... which satisfies dependency `embedded-hal = "^1.0.0"` of package `bme280 v0.5.0`
    ... which satisfies dependency `bme280 = "^0.5.0"` of package `esp-test v0.1.0 (/home/weiying-chen/rust/esp-test)`

failed to select a version for `embedded-hal` which could resolve this conflict

What could be the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant