diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-06-04 01:24:14 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-06-04 01:35:04 +0200 |
| commit | 7d869bdec8290d44bc3815488011681332517f1e (patch) | |
| tree | a989bd77bcbb0d2471c66a44bc3242b2d975e97f | |
| parent | cdd5808b51f3ebc6aaca1dad26ce74ec3a7c1d7c (diff) | |
Update heapless
| -rw-r--r-- | embassy-net/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-net/src/config/mod.rs | 3 | ||||
| -rw-r--r-- | examples/std/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32f4/Cargo.toml | 2 |
4 files changed, 4 insertions, 5 deletions
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 } | |||
| 25 | embassy = { version = "0.1.0", path = "../embassy" } | 25 | embassy = { version = "0.1.0", path = "../embassy" } |
| 26 | 26 | ||
| 27 | managed = { version = "0.8.0", default-features = false, features = [ "map" ]} | 27 | managed = { version = "0.8.0", default-features = false, features = [ "map" ]} |
| 28 | heapless = { version = "0.5.6", default-features = false } | 28 | heapless = { version = "0.7.1", default-features = false } |
| 29 | as-slice = { version = "0.1.4" } | 29 | as-slice = { version = "0.1.4" } |
| 30 | generic-array = { version = "0.14.4", default-features = false } | 30 | generic-array = { version = "0.14.4", default-features = false } |
| 31 | stable_deref_trait = { version = "1.2.0", default-features = false } | 31 | 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 @@ | |||
| 1 | use heapless::consts::*; | ||
| 2 | use heapless::Vec; | 1 | use heapless::Vec; |
| 3 | use smoltcp::time::Instant; | 2 | use smoltcp::time::Instant; |
| 4 | use smoltcp::wire::{Ipv4Address, Ipv4Cidr}; | 3 | use smoltcp::wire::{Ipv4Address, Ipv4Cidr}; |
| @@ -29,7 +28,7 @@ pub enum Event { | |||
| 29 | pub struct Config { | 28 | pub struct Config { |
| 30 | pub address: Ipv4Cidr, | 29 | pub address: Ipv4Cidr, |
| 31 | pub gateway: Option<Ipv4Address>, | 30 | pub gateway: Option<Ipv4Address>, |
| 32 | pub dns_servers: Vec<Ipv4Address, U3>, | 31 | pub dns_servers: Vec<Ipv4Address, 3>, |
| 33 | } | 32 | } |
| 34 | 33 | ||
| 35 | pub trait Configurator { | 34 | 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" | |||
| 18 | libc = "0.2.81" | 18 | libc = "0.2.81" |
| 19 | clap = { version = "3.0.0-beta.2", features = ["derive"] } | 19 | clap = { version = "3.0.0-beta.2", features = ["derive"] } |
| 20 | rand_core = { version = "0.6.0", features = ["std"] } | 20 | rand_core = { version = "0.6.0", features = ["std"] } |
| 21 | heapless = { version = "0.5.6", default-features = false } | 21 | 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" } | |||
| 32 | panic-probe = { version = "0.2.0", features= ["print-defmt"] } | 32 | panic-probe = { version = "0.2.0", features= ["print-defmt"] } |
| 33 | futures = { version = "0.3.8", default-features = false, features = ["async-await"] } | 33 | futures = { version = "0.3.8", default-features = false, features = ["async-await"] } |
| 34 | rtt-target = { version = "0.3", features = ["cortex-m"] } | 34 | rtt-target = { version = "0.3", features = ["cortex-m"] } |
| 35 | heapless = "0.7" \ No newline at end of file | 35 | heapless = { version = "0.7.1", default-features = false } \ No newline at end of file |
