From bd511ee2ef69087238f4493fb5854b249a72af67 Mon Sep 17 00:00:00 2001 From: Michael Beaumont Date: Sat, 11 Jan 2020 22:13:39 +0100 Subject: [PATCH] build: Improve dependencies --- Cargo.toml | 7 +++---- examples/stm32f042.rs | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9b56ac1..cdc9185 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,15 +11,14 @@ license = "MIT" repository = "https://github.com/michaelbeaumont/dht-sensor" [dependencies] -embedded-hal = "0.2.3" +embedded-hal = "^0.2.3" [dev-dependencies] -stm32f0xx-hal = {version = "*", features = ["stm32f042"]} +stm32f0xx-hal = {version = "0.15.2", features = ["stm32f042"]} cortex-m = "0.6.1" cortex-m-rt = "0.6.11" -cortex-m-semihosting = "0.3.3" +cortex-m-semihosting = "0.3.5" panic-halt = "0.2.0" -stm32f0 = {version = "0.9.0", features = ["stm32f0x2"]} [profile.release] codegen-units = 1 diff --git a/examples/stm32f042.rs b/examples/stm32f042.rs index a919042..bb96d81 100644 --- a/examples/stm32f042.rs +++ b/examples/stm32f042.rs @@ -2,6 +2,7 @@ #![no_main] use crate::hal::{delay, gpio, prelude::*, stm32}; +use cortex_m; use cortex_m_rt::entry; use cortex_m_semihosting::hprintln; use panic_halt as _;