Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

fix: update riscv-rt to avoid yanked version #47

Closed
wants to merge 5 commits into from

Conversation

sethp
Copy link

@sethp sethp commented Jan 21, 2023

Even with the changes in esp-rs/esp-hal#350 creating a new project from the template for an esp32c3 produces a result that fails to build with:

error: failed to select a version for the requirement `riscv = "^0.9"`
candidate versions found which didn't match: 0.10.1, 0.8.0, 0.7.0, ...
location searched: crates.io index
required by package `riscv-rt v0.10.0`
    ... which satisfies dependency `riscv-rt = "^0.10"` of package `example_project v0.1.0 (/home/seth/Code/src/github.com/rustbox/esp-hal/example-project)`

sethp and others added 4 commits January 21, 2023 07:04
Even with the changes in esp-rs/esp-hal#350 creating a new project from the template for an esp32c3 produces a result that fails to build with:

```
error: failed to select a version for the requirement `riscv = "^0.9"`
candidate versions found which didn't match: 0.10.1, 0.8.0, 0.7.0, ...
location searched: crates.io index
required by package `riscv-rt v0.10.0`
    ... which satisfies dependency `riscv-rt = "^0.10"` of package `example_project v0.1.0 (/home/seth/Code/src/github.com/rustbox/esp-hal/example-project)`
```
@georgik
Copy link

georgik commented Jan 24, 2023

Additional correction is needed to compile. It's necessary to remove unwrap().

error[E0599]: no method named `unwrap` found for struct `Peripherals` in the current scope
 --> src/main.rs:9:43
  |
9 |     let peripherals = Peripherals::take().unwrap();
  |                                           ^^^^^^ method not found in `Peripherals`

@sethp
Copy link
Author

sethp commented Jan 24, 2023

Thanks @georgik : that's what I get for trying to avoid learning how to work with cargo generate from a local path!

Fifth time's the charm, I guess?

@SergioGasquez
Copy link
Member

Hi, thanks for your contribution! New hals just got released and the template is now updated and working properly again!

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

Successfully merging this pull request may close these issues.

3 participants