aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThales Fragoso <[email protected]>2021-06-14 18:30:11 -0300
committerDario Nieuwenhuis <[email protected]>2021-06-16 16:48:35 +0200
commit598201bff3e6bb07f128d440207c547fe523f195 (patch)
treeb545642a1767b6660733866fffa47890a82ef413
parent3396a519389837727c17eae2ebf65d5c93f70551 (diff)
eth-v2: Make embassy-net optional
-rw-r--r--embassy-stm32/Cargo.toml3
-rw-r--r--embassy-stm32/src/lib.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index cf45fe21f..66e2d516e 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -10,7 +10,7 @@ embassy = { version = "0.1.0", path = "../embassy" }
10embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] } 10embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] }
11embassy-extras = {version = "0.1.0", path = "../embassy-extras" } 11embassy-extras = {version = "0.1.0", path = "../embassy-extras" }
12embassy-traits = {version = "0.1.0", path = "../embassy-traits" } 12embassy-traits = {version = "0.1.0", path = "../embassy-traits" }
13embassy-net = { version = "0.1.0", path = "../embassy-net", features = ["tcp", "medium-ip"] } 13embassy-net = { version = "0.1.0", path = "../embassy-net", features = ["tcp", "medium-ethernet"], optional = true }
14 14
15defmt = { version = "0.2.0", optional = true } 15defmt = { version = "0.2.0", optional = true }
16log = { version = "0.4.11", optional = true } 16log = { version = "0.4.11", optional = true }
@@ -41,6 +41,7 @@ defmt-info = [ ]
41defmt-warn = [ ] 41defmt-warn = [ ]
42defmt-error = [ ] 42defmt-error = [ ]
43sdmmc-rs = ["embedded-sdmmc"] 43sdmmc-rs = ["embedded-sdmmc"]
44net = ["embassy-net"]
44 45
45# BEGIN GENERATED FEATURES 46# BEGIN GENERATED FEATURES
46# Generated by gen_features.py. DO NOT EDIT. 47# Generated by gen_features.py. DO NOT EDIT.
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs
index b99751e6d..39ccd54f0 100644
--- a/embassy-stm32/src/lib.rs
+++ b/embassy-stm32/src/lib.rs
@@ -29,7 +29,7 @@ pub mod clock;
29pub mod dac; 29pub mod dac;
30#[cfg(dma)] 30#[cfg(dma)]
31pub mod dma; 31pub mod dma;
32#[cfg(eth)] 32#[cfg(all(eth, feature = "net"))]
33pub mod eth; 33pub mod eth;
34#[cfg(i2c)] 34#[cfg(i2c)]
35pub mod i2c; 35pub mod i2c;