From 4a95b6e2b0c17d4ff97e332c40f875f9ecba446f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 11 Sep 2020 18:34:15 +0800 Subject: [PATCH] Cargo.toml: fix stm32h7xx-hal override Doing it via dependencies.stm32h7xx-hal causes cargo vendor to fail with: error: failed to sync Caused by: found duplicate version of package `stm32h7xx-hal v0.5.0` vendored from two sources: source 1: registry `https://github.com/rust-lang/crates.io-index` source 2: https://github.com/quartiq/stm32h7xx-hal.git?branch=feature/pounder-support#ff00e938 --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9b7cb73..0595c33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,10 +58,11 @@ branch = "master" features = ["stm32h743v"] [dependencies.stm32h7xx-hal] -git = "https://github.com/quartiq/stm32h7xx-hal.git" -branch = "feature/pounder-support" features = ["stm32h743v", "rt", "unproven"] +[patch.crates-io] +stm32h7xx-hal = { git = "https://github.com/quartiq/stm32h7xx-hal.git", branch = "feature/pounder-support" } + [features] semihosting = ["panic-semihosting", "cortex-m-log/semihosting"] bkpt = [ ]