diff --git a/async/Cargo.toml b/async/Cargo.toml index f945b4ec7d31721872439d04db373feef5108d42..d060fd5f8e80a2ec63adaaaab076ad6e67be7ed0 100644 --- a/async/Cargo.toml +++ b/async/Cargo.toml @@ -44,7 +44,7 @@ pretty-hex = "0.3" whoami = "1.3" zeroize = "1.5" -tokio = { version = "1.17", features = ["full"] } +tokio = { version = "1.25", features = ["full"] } # adapters for tokio and async-std embedded-io-adapters = { version = "0.6", features = ["tokio-1"] } diff --git a/embassy/demos/common/Cargo.toml b/embassy/demos/common/Cargo.toml index 90105569a40a2492cbd4577dbdafa624699d71c2..161933f9577c1a24cd5bd132a0e5ecb5919fbb8b 100644 --- a/embassy/demos/common/Cargo.toml +++ b/embassy/demos/common/Cargo.toml @@ -28,6 +28,11 @@ defmt = { version = "0.3", optional = true } log = "0.4" pretty-hex = { version = "0.3", default-features = false } +[dev-dependencies] +anyhow = { version = "1.0" } +sunset = { path = "../../..", features = ["std"] } +tokio = { version = "1.25", features = ["full"] } + [features] defmt = ["dep:defmt", "embedded-io-async/defmt-03"] log = ["embassy-net/log"] diff --git a/embassy/demos/common/src/lib.rs b/embassy/demos/common/src/lib.rs index 53c4861179e83a1771e9b738695b263fc700c79c..a206af9c949d7b53bacc77195d0052018a1c7553 100644 --- a/embassy/demos/common/src/lib.rs +++ b/embassy/demos/common/src/lib.rs @@ -9,6 +9,7 @@ mod server; pub mod config; pub mod menu; pub mod demo_menu; +pub mod takepipe; pub use server::{DemoServer, listener}; pub use config::SSHConfig; diff --git a/embassy/demos/picow/src/main.rs b/embassy/demos/picow/src/main.rs index f6a4e5a70f2a43d6ba0d785dd0e8a0a1504d992c..7e013be0b7e3e7bcbff041aed3f9415388811ec7 100644 --- a/embassy/demos/picow/src/main.rs +++ b/embassy/demos/picow/src/main.rs @@ -36,7 +36,6 @@ pub(crate) use sunset_demo_embassy_common as demo_common; mod flashconfig; mod picowmenu; mod serial; -mod takepipe; mod usb; mod keyboard; #[cfg(feature = "w5500")] @@ -50,7 +49,7 @@ compile_error!("No network device selected. Use cyw43 or w5500 feature"); #[cfg(all(feature = "cyw43", feature = "w5500"))] compile_error!("Select only one of cyw43 or w5500"); -use demo_common::{SSHConfig, DemoServer}; +use demo_common::{SSHConfig, DemoServer, takepipe}; use takepipe::TakePipe;