Skip to content

Commit fa587d2

Browse files
datdenkiknietJohannes Draaijer
authored andcommitted
Make ieee802_3_miim non-optional
1 parent 457afa5 commit fa587d2

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ aligned = "0.4"
2323
stm32f7xx-hal = { version = "0.7.0", optional = true }
2424
stm32f4xx-hal = { version = "0.13", optional = true }
2525
stm32f1xx-hal = { version = "0.9", optional = true }
26-
ieee802_3_miim = { version = "0.7", optional = true }
26+
ieee802_3_miim = "0.7"
2727
cortex-m = "0.7"
2828
log = { version = "0.4", optional = true }
2929
defmt = { version = "0.3", optional = true }
@@ -35,7 +35,7 @@ features = ["medium-ethernet", "proto-ipv4"]
3535
optional = true
3636

3737
[features]
38-
default = [ "ieee802_3_miim", "defmt" ]
38+
default = [ "defmt" ]
3939
device-selected = []
4040
fence = []
4141

@@ -64,7 +64,7 @@ smoltcp-phy = ["smoltcp"]
6464

6565
# Example features
6666
example-nucleo-pins = [ ]
67-
rtic-echo-example = [ "ieee802_3_miim", "defmt", "smoltcp-phy", "smoltcp/defmt", "smoltcp/medium-ethernet", "smoltcp/socket-tcp" ]
67+
rtic-echo-example = [ "defmt", "smoltcp-phy", "smoltcp/defmt", "smoltcp/medium-ethernet", "smoltcp/socket-tcp" ]
6868

6969
[dev-dependencies]
7070
cortex-m = "0.7"

src/mac/miim.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#[cfg(feature = "ieee802_3_miim")]
21
pub use ieee802_3_miim::Miim;
32

4-
#[cfg(feature = "ieee802_3_miim")]
53
pub use ieee802_3_miim::*;
64

75
use crate::{
@@ -90,7 +88,6 @@ where
9088
}
9189
}
9290

93-
#[cfg(feature = "ieee802_3_miim")]
9491
impl<'eth, 'pins, Mdio, Mdc> Miim for Stm32Mii<'eth, 'pins, Mdio, Mdc>
9592
where
9693
Mdio: MdioPin,

src/mac/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ where
232232
}
233233
}
234234

235-
#[cfg(feature = "ieee802_3_miim")]
236235
impl<MDIO, MDC> miim::Miim for EthernetMACWithMii<MDIO, MDC>
237236
where
238237
MDIO: MdioPin,

0 commit comments

Comments
 (0)