diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-03-02 21:14:58 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-02 21:15:12 +0100 |
| commit | d4f2c6cf00b481f5d346bc3a1cd820883c8add23 (patch) | |
| tree | bfe21da055e7d4000e199cd3f630c2045a6d4944 | |
| parent | 7991b05e4cce4f52873f0bb9620ef6d37a46e2e9 (diff) | |
Remove cargo namespaced-features
| -rw-r--r-- | .cargo/config | 2 | ||||
| -rw-r--r-- | .github/workflows/rust.yml | 2 | ||||
| -rwxr-xr-x | ci.sh (renamed from test-build.sh) | 0 | ||||
| -rw-r--r-- | embassy-nrf-examples/.cargo/config | 1 | ||||
| -rw-r--r-- | embassy-nrf-examples/Cargo.toml | 1 | ||||
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32f4-examples/Cargo.toml | 1 | ||||
| -rw-r--r-- | embassy-traits/Cargo.toml | 10 | ||||
| -rw-r--r-- | embassy/Cargo.toml | 12 |
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] | ||
| 2 | namespaced-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/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] |
| 2 | namespaced-features = true | ||
| 3 | build-std = ["core"] | 2 | build-std = ["core"] |
| 4 | build-std-features = ["panic_immediate_abort"] | 3 | build-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] |
| 20 | embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../embassy-traits", features = ["defmt"] } | ||
| 21 | embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] } | 22 | embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] } |
| 22 | 23 | ||
| 23 | defmt = "0.2.0" | 24 | defmt = "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; | |||
| 4 | use core::pin::Pin; | 4 | use core::pin::Pin; |
| 5 | use core::ptr; | 5 | use core::ptr; |
| 6 | use core::task::{Context, Poll}; | 6 | use core::task::{Context, Poll}; |
| 7 | use embassy::traits::gpio::{WaitForHigh, WaitForLow}; | ||
| 8 | use embassy::interrupt::InterruptExt; | 7 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::traits::gpio::{WaitForHigh, WaitForLow}; | ||
| 9 | use embassy::util::Signal; | 9 | use embassy::util::Signal; |
| 10 | 10 | ||
| 11 | use crate::hal::gpio::{Input, Level, Output, Pin as GpioPin, Port}; | 11 | use 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] |
| 20 | embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../embassy-traits", features = ["defmt"] } | ||
| 21 | embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] } | 22 | embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] } |
| 22 | 23 | ||
| 23 | defmt = "0.2.0" | 24 | defmt = "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" | |||
| 4 | authors = ["Dario Nieuwenhuis <[email protected]>"] | 4 | authors = ["Dario Nieuwenhuis <[email protected]>"] |
| 5 | edition = "2018" | 5 | edition = "2018" |
| 6 | 6 | ||
| 7 | [dependencies] | ||
| 8 | defmt = { version = "0.2.0", optional = true } | ||
| 9 | |||
| 10 | [features] | 7 | [features] |
| 11 | std = [] | 8 | std = [] |
| 12 | 9 | ||
| 13 | defmt-trace = [] | 10 | [dependencies] |
| 14 | defmt-debug = [] | 11 | defmt = { version = "0.2.0", optional = true } |
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-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] |
| 8 | std = ["futures/std", "embassy-traits/std"] | 8 | std = ["futures/std", "embassy-traits/std"] |
| 9 | defmt = ["embassy-traits/defmt", "dep:defmt"] | 9 | |
| 10 | defmt-trace = ["embassy-traits/defmt-trace"] | 10 | defmt-trace = [] |
| 11 | defmt-debug = ["embassy-traits/defmt-debug"] | 11 | defmt-debug = [] |
| 12 | defmt-info = ["embassy-traits/defmt-info"] | 12 | defmt-info = [] |
| 13 | defmt-warn = ["embassy-traits/defmt-warn"] | 13 | defmt-warn = [] |
| 14 | defmt-error = ["embassy-traits/defmt-error"] | 14 | defmt-error = [] |
| 15 | 15 | ||
| 16 | [dependencies] | 16 | [dependencies] |
| 17 | defmt = { version = "0.2.0", optional = true } | 17 | defmt = { version = "0.2.0", optional = true } |
