diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 30970c371..5d391698c 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml @@ -25,7 +25,7 @@ log = { version = "0.4.11", optional = true } embassy = { version = "0.1.0", path = "../embassy" } managed = { version = "0.8.0", default-features = false, features = [ "map" ]} -heapless = { version = "0.5.6", default-features = false } +heapless = { version = "0.7.1", default-features = false } as-slice = { version = "0.1.4" } generic-array = { version = "0.14.4", default-features = false } stable_deref_trait = { version = "1.2.0", default-features = false } diff --git a/embassy-net/src/config/mod.rs b/embassy-net/src/config/mod.rs index 16470f7e6..94725dba6 100644 --- a/embassy-net/src/config/mod.rs +++ b/embassy-net/src/config/mod.rs @@ -1,4 +1,3 @@ -use heapless::consts::*; use heapless::Vec; use smoltcp::time::Instant; use smoltcp::wire::{Ipv4Address, Ipv4Cidr}; @@ -29,7 +28,7 @@ pub enum Event { pub struct Config { pub address: Ipv4Cidr, pub gateway: Option, - pub dns_servers: Vec, + pub dns_servers: Vec, } pub trait Configurator { diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 04e89269d..22ffc8937 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml @@ -18,4 +18,4 @@ nix = "0.21.0" libc = "0.2.81" clap = { version = "3.0.0-beta.2", features = ["derive"] } rand_core = { version = "0.6.0", features = ["std"] } -heapless = { version = "0.5.6", default-features = false } +heapless = { version = "0.7.1", default-features = false } diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml index c5c8d9ae6..2c16af5fb 100644 --- a/examples/stm32f4/Cargo.toml +++ b/examples/stm32f4/Cargo.toml @@ -32,4 +32,4 @@ embedded-hal = { version = "0.2.4" } panic-probe = { version = "0.2.0", features= ["print-defmt"] } futures = { version = "0.3.8", default-features = false, features = ["async-await"] } rtt-target = { version = "0.3", features = ["cortex-m"] } -heapless = "0.7" \ No newline at end of file +heapless = { version = "0.7.1", default-features = false } \ No newline at end of file