Skip to content

Commit

Permalink
Remove embedded-svc feature (esp-rs#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored and bjoernQ committed May 23, 2024
1 parent 6687cf7 commit 5823b2d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions esp-wifi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ toml-cfg.workspace = true
[dev-dependencies]
esp-println = { workspace = true, features = ["log"] }
esp-backtrace.workspace = true
embedded-svc.workspace = true
embassy-executor.workspace = true
embassy-time.workspace = true
futures-util.workspace = true
Expand Down Expand Up @@ -106,8 +105,7 @@ dump-packets = []
smoltcp = [ "dep:smoltcp" ]
utils = [ "smoltcp" ]
enumset = []
embedded-svc = [ "dep:enumset", "dep:embedded-svc" ]
wifi = [ "embedded-svc" ]
wifi = [ "dep:enumset", "dep:embedded-svc" ]
ble = [ "esp32-hal?/bluetooth" ]
phy-enable-usb = []
ps-min-modem = []
Expand Down
1 change: 0 additions & 1 deletion esp-wifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Don't use this feature if your are _not_ using USB-SERIAL-JTAG since it might re
| wifi-logs | logs the WiFi logs from the driver at log level info |
| dump-packets | dumps packet info at log level info |
| utils | Provide utilities for smoltcp initialization; adds `smoltcp` dependency |
| embedded-svc | Provides a (very limited) implementation of the `embedded-svc` WiFi trait |
| ble | Enable BLE support |
| wifi | Enable WiFi support |
| esp-now | Enable esp-now support |
Expand Down
6 changes: 1 addition & 5 deletions esp-wifi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ pub(crate) mod memory_fence;
use critical_section;
use timer::{get_systimer_count, ticks_to_millis};

#[cfg(all(
feature = "embedded-svc",
feature = "wifi",
any(feature = "tcp", feature = "udp")
))]
#[cfg(all(feature = "wifi", any(feature = "tcp", feature = "udp")))]
pub mod wifi_interface;

/// Return the current systimer time in milliseconds
Expand Down
1 change: 0 additions & 1 deletion esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use crate::EspWifiInitialization;

use critical_section::{CriticalSection, Mutex};

#[cfg(feature = "embedded-svc")]
use embedded_svc::wifi::{
AccessPointConfiguration, AccessPointInfo, AuthMethod, ClientConfiguration, Configuration,
Protocol, SecondaryChannel, Wifi,
Expand Down

0 comments on commit 5823b2d

Please sign in to comment.