You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compile_error!("smoltcp requires the IP medium, but no network device implementation in the project supports it. Either disable the medium in smoltcp, or add a device implementation that provides it.");
94
+
95
+
#[cfg(all(
96
+
feature = "requires-medium-ethernet",
97
+
not(feature = "provides-medium-ethernet")
98
+
))]
99
+
compile_error!("smoltcp requires the Ethernet medium, but no network device implementation in the project supports it. Either disable the medium in smoltcp, or add a device implementation that provides it.");
100
+
101
+
#[cfg(all(
102
+
feature = "requires-medium-ieee802154",
103
+
not(feature = "provides-medium-ieee802154")
104
+
))]
105
+
compile_error!(
106
+
"smoltcp requires the IEEE 802.15.4 medium, but no network device implementation in the project supports it. Either disable the medium in smoltcp, or add a device implementation that provides it."
107
+
);
108
+
109
+
// Check that provided media are required. This ensures that smoltcp includes all code necessary to handle the media.
compile_error!("A smoltcp network device provides the IP medium, but smoltcp is not configured to support it. Either disable the medium in your network devices, or enable it in smoltcp.");
113
+
114
+
#[cfg(all(
115
+
feature = "provides-medium-ethernet",
116
+
not(feature = "requires-medium-ethernet"),
117
+
))]
118
+
compile_error!("A smoltcp network device provides the Ethernet medium, but smoltcp is not configured to support it. Either disable the medium in your network devices, or enable it in smoltcp.");
119
+
120
+
#[cfg(all(
121
+
feature = "provides-medium-ieee802154",
122
+
not(feature = "requires-medium-ieee802154"),
123
+
))]
124
+
compile_error!("A smoltcp network device provides the IEEE 802.15.4 medium, but smoltcp is not configured to support it. Either disable the medium in your network devices, or enable it in smoltcp.");
125
+
92
126
pubmod time;
93
127
94
128
use time::Instant;
@@ -156,7 +190,7 @@ impl ChecksumCapabilities {
156
190
///
157
191
/// Higher-level protocols may achieve higher throughput or lower latency if they consider
0 commit comments