eth-v2: Make embassy-net optional
This commit is contained in:
parent
3396a51938
commit
598201bff3
2 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ embassy = { version = "0.1.0", path = "../embassy" }
|
|||
embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] }
|
||||
embassy-extras = {version = "0.1.0", path = "../embassy-extras" }
|
||||
embassy-traits = {version = "0.1.0", path = "../embassy-traits" }
|
||||
embassy-net = { version = "0.1.0", path = "../embassy-net", features = ["tcp", "medium-ip"] }
|
||||
embassy-net = { version = "0.1.0", path = "../embassy-net", features = ["tcp", "medium-ethernet"], optional = true }
|
||||
|
||||
defmt = { version = "0.2.0", optional = true }
|
||||
log = { version = "0.4.11", optional = true }
|
||||
|
@ -41,6 +41,7 @@ defmt-info = [ ]
|
|||
defmt-warn = [ ]
|
||||
defmt-error = [ ]
|
||||
sdmmc-rs = ["embedded-sdmmc"]
|
||||
net = ["embassy-net"]
|
||||
|
||||
# BEGIN GENERATED FEATURES
|
||||
# Generated by gen_features.py. DO NOT EDIT.
|
||||
|
|
|
@ -29,7 +29,7 @@ pub mod clock;
|
|||
pub mod dac;
|
||||
#[cfg(dma)]
|
||||
pub mod dma;
|
||||
#[cfg(eth)]
|
||||
#[cfg(all(eth, feature = "net"))]
|
||||
pub mod eth;
|
||||
#[cfg(i2c)]
|
||||
pub mod i2c;
|
||||
|
|
Loading…
Reference in a new issue