From d5f62973574f56694d91b96e205e72676efc1f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Vi=C3=B6l?= Date: Wed, 17 Nov 2021 09:52:18 +0100 Subject: [PATCH] Fix minimal dependency build Workaround the cortex-m -> bare-metal 0.2.1 dependency by depending on bare-metal 0.2.5 directly, as long as https://github.com/rust-embedded/cortex-m/pull/361 is not fixed. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index bcb7bd0c6..755869590 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,10 @@ bxcan = { version = "0.6.2", optional = true } stm32-usbd = { version = "0.6.0", optional = true } void = { version = "1.0.2", default-features = false } enumset = { version = "1.0.6", optional = true} +# NOTE: Workaround for build +# $ cargo +nightly update -Z minimal-versions +# as long cortex-m depends on bare-metal 0.2.1 +bare-metal = "0.2.5" [dev-dependencies] cortex-m = "0.7.2"