diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-17 23:22:52 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-17 23:22:52 +0000 |
| commit | be55d2a39eb399d693d11f37dfa4b87cd2bd3c7a (patch) | |
| tree | 2ef0b4d6f9b1c02dac2589e7b57982c20cbc0e66 /embassy-net | |
| parent | 1c5b54a4823d596db730eb476c3ab78110557214 (diff) | |
| parent | 5daa173ce4b153a532b4daa9e94c7a248231f25b (diff) | |
Merge #909
909: Split embassy-time from embassy-executor. r=Dirbaio a=Dirbaio
For now this will fail to link unless you enable `embassy-executor/integrated-timers`. i'll add an executor-independent timer queue to `embassy-time` later.
Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'embassy-net')
| -rw-r--r-- | embassy-net/Cargo.toml | 20 | ||||
| -rw-r--r-- | embassy-net/src/stack.rs | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 11e39a871..1ce4479aa 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml | |||
| @@ -7,7 +7,7 @@ edition = "2021" | |||
| 7 | [package.metadata.embassy_docs] | 7 | [package.metadata.embassy_docs] |
| 8 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-v$VERSION/embassy-net/src/" | 8 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-v$VERSION/embassy-net/src/" |
| 9 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net/src/" | 9 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net/src/" |
| 10 | features = [ "pool-4", "defmt", "tcp", "dns", "dhcpv4", "proto-ipv6", "medium-ethernet", "medium-ip", "embassy-executor/time", "embassy-executor/time-tick-1mhz"] | 10 | features = [ "pool-4", "defmt", "tcp", "dns", "dhcpv4", "proto-ipv6", "medium-ethernet", "medium-ip", "embassy-time/tick-1mhz"] |
| 11 | target = "thumbv7em-none-eabi" | 11 | target = "thumbv7em-none-eabi" |
| 12 | 12 | ||
| 13 | [features] | 13 | [features] |
| @@ -37,16 +37,16 @@ unstable-traits = [] | |||
| 37 | defmt = { version = "0.3", optional = true } | 37 | defmt = { version = "0.3", optional = true } |
| 38 | log = { version = "0.4.14", optional = true } | 38 | log = { version = "0.4.14", optional = true } |
| 39 | 39 | ||
| 40 | embassy-executor = { version = "0.1.0", path = "../embassy-executor" } | 40 | embassy-time = { version = "0.1.0", path = "../embassy-time" } |
| 41 | embassy-util = { version = "0.1.0", path = "../embassy-util" } | 41 | embassy-util = { version = "0.1.0", path = "../embassy-util" } |
| 42 | embedded-io = { version = "0.3.0", features = [ "async" ] } | 42 | embedded-io = { version = "0.3.0", features = [ "async" ] } |
| 43 | 43 | ||
| 44 | managed = { version = "0.8.0", default-features = false, features = [ "map" ] } | 44 | managed = { version = "0.8.0", default-features = false, features = [ "map" ] } |
| 45 | heapless = { version = "0.7.5", default-features = false } | 45 | heapless = { version = "0.7.5", default-features = false } |
| 46 | as-slice = "0.2.1" | 46 | as-slice = "0.2.1" |
| 47 | generic-array = { version = "0.14.4", default-features = false } | 47 | generic-array = { version = "0.14.4", default-features = false } |
| 48 | stable_deref_trait = { version = "1.2.0", default-features = false } | 48 | stable_deref_trait = { version = "1.2.0", default-features = false } |
| 49 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } | 49 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } |
| 50 | atomic-pool = "0.2.1" | 50 | atomic-pool = "0.2.1" |
| 51 | atomic-polyfill = "0.1.5" | 51 | atomic-polyfill = "0.1.5" |
| 52 | embedded-nal-async = "0.2.0" | 52 | embedded-nal-async = "0.2.0" |
diff --git a/embassy-net/src/stack.rs b/embassy-net/src/stack.rs index 06bb732ff..4b6a7ae2a 100644 --- a/embassy-net/src/stack.rs +++ b/embassy-net/src/stack.rs | |||
| @@ -2,7 +2,7 @@ use core::cell::UnsafeCell; | |||
| 2 | use core::future::Future; | 2 | use core::future::Future; |
| 3 | use core::task::{Context, Poll}; | 3 | use core::task::{Context, Poll}; |
| 4 | 4 | ||
| 5 | use embassy_executor::time::{Instant, Timer}; | 5 | use embassy_time::{Instant, Timer}; |
| 6 | use embassy_util::waitqueue::WakerRegistration; | 6 | use embassy_util::waitqueue::WakerRegistration; |
| 7 | use futures::future::poll_fn; | 7 | use futures::future::poll_fn; |
| 8 | use futures::pin_mut; | 8 | use futures::pin_mut; |
