aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-03-02 21:14:58 +0100
committerDario Nieuwenhuis <[email protected]>2021-03-02 21:15:12 +0100
commitd4f2c6cf00b481f5d346bc3a1cd820883c8add23 (patch)
treebfe21da055e7d4000e199cd3f630c2045a6d4944
parent7991b05e4cce4f52873f0bb9620ef6d37a46e2e9 (diff)
Remove cargo namespaced-features
-rw-r--r--.cargo/config2
-rw-r--r--.github/workflows/rust.yml2
-rwxr-xr-xci.sh (renamed from test-build.sh)0
-rw-r--r--embassy-nrf-examples/.cargo/config1
-rw-r--r--embassy-nrf-examples/Cargo.toml1
-rw-r--r--embassy-nrf/src/gpiote.rs2
-rw-r--r--embassy-stm32f4-examples/Cargo.toml1
-rw-r--r--embassy-traits/Cargo.toml10
-rw-r--r--embassy/Cargo.toml12
9 files changed, 12 insertions, 19 deletions
diff --git a/.cargo/config b/.cargo/config
deleted file mode 100644
index a14129b9d..000000000
--- a/.cargo/config
+++ /dev/null
@@ -1,2 +0,0 @@
1[unstable]
2namespaced-features = true
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 44e092a67..006416121 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -22,4 +22,4 @@ jobs:
22 components: rust-src 22 components: rust-src
23 override: true 23 override: true
24 - name: Build 24 - name: Build
25 run: ./test-build.sh 25 run: ./ci.sh
diff --git a/test-build.sh b/ci.sh
index d556fb313..d556fb313 100755
--- a/test-build.sh
+++ b/ci.sh
diff --git a/embassy-nrf-examples/.cargo/config b/embassy-nrf-examples/.cargo/config
index 37e38ec95..17b9c8d80 100644
--- a/embassy-nrf-examples/.cargo/config
+++ b/embassy-nrf-examples/.cargo/config
@@ -1,5 +1,4 @@
1[unstable] 1[unstable]
2namespaced-features = true
3build-std = ["core"] 2build-std = ["core"]
4build-std-features = ["panic_immediate_abort"] 3build-std-features = ["panic_immediate_abort"]
5 4
diff --git a/embassy-nrf-examples/Cargo.toml b/embassy-nrf-examples/Cargo.toml
index cf82a475f..1f67b6a8c 100644
--- a/embassy-nrf-examples/Cargo.toml
+++ b/embassy-nrf-examples/Cargo.toml
@@ -18,6 +18,7 @@ defmt-error = []
18 18
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] }
21embassy-traits = { version = "0.1.0", path = "../embassy-traits", features = ["defmt"] }
21embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] } 22embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] }
22 23
23defmt = "0.2.0" 24defmt = "0.2.0"
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index 7cc649107..5dc80a639 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -4,8 +4,8 @@ use core::ops::Deref;
4use core::pin::Pin; 4use core::pin::Pin;
5use core::ptr; 5use core::ptr;
6use core::task::{Context, Poll}; 6use core::task::{Context, Poll};
7use embassy::traits::gpio::{WaitForHigh, WaitForLow};
8use embassy::interrupt::InterruptExt; 7use embassy::interrupt::InterruptExt;
8use embassy::traits::gpio::{WaitForHigh, WaitForLow};
9use embassy::util::Signal; 9use embassy::util::Signal;
10 10
11use crate::hal::gpio::{Input, Level, Output, Pin as GpioPin, Port}; 11use crate::hal::gpio::{Input, Level, Output, Pin as GpioPin, Port};
diff --git a/embassy-stm32f4-examples/Cargo.toml b/embassy-stm32f4-examples/Cargo.toml
index 3e117ecb0..16581f4fd 100644
--- a/embassy-stm32f4-examples/Cargo.toml
+++ b/embassy-stm32f4-examples/Cargo.toml
@@ -18,6 +18,7 @@ defmt-error = []
18 18
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] }
21embassy-traits = { version = "0.1.0", path = "../embassy-traits", features = ["defmt"] }
21embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] } 22embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] }
22 23
23defmt = "0.2.0" 24defmt = "0.2.0"
diff --git a/embassy-traits/Cargo.toml b/embassy-traits/Cargo.toml
index 09db74ab9..626bf9f3a 100644
--- a/embassy-traits/Cargo.toml
+++ b/embassy-traits/Cargo.toml
@@ -4,14 +4,8 @@ version = "0.1.0"
4authors = ["Dario Nieuwenhuis <[email protected]>"] 4authors = ["Dario Nieuwenhuis <[email protected]>"]
5edition = "2018" 5edition = "2018"
6 6
7[dependencies]
8defmt = { version = "0.2.0", optional = true }
9
10[features] 7[features]
11std = [] 8std = []
12 9
13defmt-trace = [] 10[dependencies]
14defmt-debug = [] 11defmt = { version = "0.2.0", optional = true }
15defmt-info = []
16defmt-warn = []
17defmt-error = [] \ No newline at end of file
diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml
index 116ab2245..1b8e2a075 100644
--- a/embassy/Cargo.toml
+++ b/embassy/Cargo.toml
@@ -6,12 +6,12 @@ edition = "2018"
6 6
7[features] 7[features]
8std = ["futures/std", "embassy-traits/std"] 8std = ["futures/std", "embassy-traits/std"]
9defmt = ["embassy-traits/defmt", "dep:defmt"] 9
10defmt-trace = ["embassy-traits/defmt-trace"] 10defmt-trace = []
11defmt-debug = ["embassy-traits/defmt-debug"] 11defmt-debug = []
12defmt-info = ["embassy-traits/defmt-info"] 12defmt-info = []
13defmt-warn = ["embassy-traits/defmt-warn"] 13defmt-warn = []
14defmt-error = ["embassy-traits/defmt-error"] 14defmt-error = []
15 15
16[dependencies] 16[dependencies]
17defmt = { version = "0.2.0", optional = true } 17defmt = { version = "0.2.0", optional = true }