From 7dd7f391fc3512ec383198eb55349ee3270c8db1 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 14 Jul 2021 21:58:07 +0200 Subject: [PATCH] Fix OOTB workspace issues with embassy-net --- .vscode/settings.json | 6 +++++- Cargo.example.toml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e9055350..ceb87ad5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,11 @@ "rust-analyzer.checkOnSave.allFeatures": false, "rust-analyzer.checkOnSave.allTargets": false, "rust-analyzer.cargo.target": "thumbv7em-none-eabi", - "rust-analyzer.checkOnSave.target": "thumbv7em-none-eabi", + "rust-analyzer.cargo.features": [ + // These are needed to prevent embassy-net from failing to build + "embassy-net/medium-ethernet", + "embassy-net/tcp" + ], "rust-analyzer.procMacro.enable": true, "rust-analyzer.cargo.runBuildScripts": true, "files.watcherExclude": { diff --git a/Cargo.example.toml b/Cargo.example.toml index cbb221e7..d6bc78bd 100644 --- a/Cargo.example.toml +++ b/Cargo.example.toml @@ -22,6 +22,7 @@ members = [ "embassy-traits", "embassy-macros", "embassy-extras", + "embassy-net", # Uncomment ONLY ONE of the groups below.