From 18aa947e2c8367461b1911f2742f7a5d9bb29f24 Mon Sep 17 00:00:00 2001 From: sethp Date: Sat, 21 Jan 2023 07:04:56 -0800 Subject: [PATCH] fix: update riscv-rt to avoid yanked version Even with the changes in https://github.com/esp-rs/esp-hal/pull/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)` ``` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ca2ead8..34eb84b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ esp-alloc = { version = "0.1.0", features = ["oom-handler"] } {%- endif %} esp-backtrace = { version = "0.4.0", features = ["{{ mcu }}", "panic-handler", "print-uart"] } {% if mcu == "esp32c3" -%} -riscv-rt = { version = "0.10", optional = true } +riscv-rt = { version = "0.10.1", optional = true } {%- else -%} {% if mcu == "esp32s2" -%} xtensa-atomic-emulation-trap = "0.3.0"