eth-v2: Make embassy-net optional

This commit is contained in:
Thales Fragoso 2021-06-14 18:30:11 -03:00 committed by Dario Nieuwenhuis
parent 3396a51938
commit 598201bff3
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ embassy = { version = "0.1.0", path = "../embassy" }
embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] } embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] }
embassy-extras = {version = "0.1.0", path = "../embassy-extras" } embassy-extras = {version = "0.1.0", path = "../embassy-extras" }
embassy-traits = {version = "0.1.0", path = "../embassy-traits" } 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 } defmt = { version = "0.2.0", optional = true }
log = { version = "0.4.11", optional = true } log = { version = "0.4.11", optional = true }
@ -41,6 +41,7 @@ defmt-info = [ ]
defmt-warn = [ ] defmt-warn = [ ]
defmt-error = [ ] defmt-error = [ ]
sdmmc-rs = ["embedded-sdmmc"] sdmmc-rs = ["embedded-sdmmc"]
net = ["embassy-net"]
# BEGIN GENERATED FEATURES # BEGIN GENERATED FEATURES
# Generated by gen_features.py. DO NOT EDIT. # Generated by gen_features.py. DO NOT EDIT.

View file

@ -29,7 +29,7 @@ pub mod clock;
pub mod dac; pub mod dac;
#[cfg(dma)] #[cfg(dma)]
pub mod dma; pub mod dma;
#[cfg(eth)] #[cfg(all(eth, feature = "net"))]
pub mod eth; pub mod eth;
#[cfg(i2c)] #[cfg(i2c)]
pub mod i2c; pub mod i2c;