Skip to content

Commit 904cf42

Browse files
committed
Remove protocol features
1 parent b50f402 commit 904cf42

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ defmt = ["dep:defmt", "heapless/defmt-03", "smoltcp-device/defmt"]
5555
"phy-raw_socket" = ["std", "libc"]
5656
"phy-tuntap_interface" = ["std", "libc", "medium-ethernet"]
5757

58-
"proto-ipv4" = ["smoltcp-device/proto-ipv4"]
58+
"proto-ipv4" = []
5959
"proto-ipv4-fragmentation" = ["proto-ipv4", "_proto-fragmentation"]
6060
"proto-dhcpv4" = ["proto-ipv4"]
61-
"proto-ipv6" = ["smoltcp-device/proto-ipv6"]
61+
"proto-ipv6" = []
6262
"proto-ipv6-hbh" = ["proto-ipv6"]
6363
"proto-ipv6-fragmentation" = ["proto-ipv6", "_proto-fragmentation"]
6464
"proto-ipv6-routing" = ["proto-ipv6"]

smoltcp-device/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ defmt = ["dep:defmt"]
1212

1313
std = []
1414

15-
"proto-ipv4" = []
16-
"proto-ipv6" = []
17-
1815
"medium-ethernet" = []
1916
"medium-ip" = []
2017
"medium-ieee802154" = []

smoltcp-device/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ pub struct ChecksumCapabilities {
134134
pub ipv4: Checksum,
135135
pub udp: Checksum,
136136
pub tcp: Checksum,
137-
#[cfg(feature = "proto-ipv4")]
138137
pub icmpv4: Checksum,
139-
#[cfg(feature = "proto-ipv6")]
140138
pub icmpv6: Checksum,
141139
}
142140

@@ -148,9 +146,7 @@ impl ChecksumCapabilities {
148146
ipv4: Checksum::None,
149147
udp: Checksum::None,
150148
tcp: Checksum::None,
151-
#[cfg(feature = "proto-ipv4")]
152149
icmpv4: Checksum::None,
153-
#[cfg(feature = "proto-ipv6")]
154150
icmpv6: Checksum::None,
155151
}
156152
}

0 commit comments

Comments
 (0)