Skip to content

Commit 81def9a

Browse files
bugadanibjoernQ
authored andcommitted
Don't require smoltcp as a dev dependency (esp-rs#365)
* Don't require smoltcp as a dev dependency * Document the smoltcp feature
1 parent e9795d4 commit 81def9a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

esp-wifi/Cargo.toml

+7-8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ futures-util.workspace = true
6363
bleps = { workspace = true, features = ["async"] }
6464
embedded-hal-async.workspace = true
6565
log.workspace = true
66-
smoltcp.workspace = true
6766
static_cell.workspace = true
6867

6968
[features]
@@ -111,13 +110,13 @@ phy-enable-usb = []
111110
ps-min-modem = []
112111
ps-max-modem = []
113112
esp-now = [ "wifi" ]
114-
ipv6 = ["wifi", "utils", "smoltcp?/proto-ipv6"]
115-
ipv4 = ["wifi", "utils", "smoltcp?/proto-ipv4"]
116-
tcp = ["ipv4", "smoltcp?/socket-tcp"]
117-
udp = ["ipv4", "smoltcp?/socket-udp"]
118-
icmp = ["ipv4", "smoltcp?/socket-icmp"]
119-
igmp = ["ipv4", "smoltcp?/proto-igmp"]
120-
dns = ["udp", "smoltcp?/proto-dns", "smoltcp?/socket-dns"]
113+
ipv6 = ["wifi", "utils", "smoltcp?/proto-ipv6"]
114+
ipv4 = ["wifi", "utils", "smoltcp?/proto-ipv4"]
115+
tcp = ["ipv4", "smoltcp?/socket-tcp"]
116+
udp = ["ipv4", "smoltcp?/socket-udp"]
117+
icmp = ["ipv4", "smoltcp?/socket-icmp"]
118+
igmp = ["ipv4", "smoltcp?/proto-igmp"]
119+
dns = ["udp", "smoltcp?/proto-dns", "smoltcp?/socket-dns"]
121120
dhcpv4 = ["wifi", "utils", "smoltcp?/proto-dhcpv4", "smoltcp?/socket-dhcpv4"]
122121
defmt = [
123122
"dep:defmt",

esp-wifi/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Don't use this feature if your are _not_ using USB-SERIAL-JTAG since it might re
7070
| -------------- | ---------------------------------------------------------------------------------------------------- |
7171
| wifi-logs | logs the WiFi logs from the driver at log level info |
7272
| dump-packets | dumps packet info at log level info |
73+
| smoltcp | Provide implementations of `smoltcp` traits |
7374
| utils | Provide utilities for smoltcp initialization; adds `smoltcp` dependency |
7475
| ble | Enable BLE support |
7576
| wifi | Enable WiFi support |

0 commit comments

Comments
 (0)