Skip to content

Commit 080579f

Browse files
committed
Remove unproven feature
1 parent 32a7224 commit 080579f

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ jobs:
9292
command: check
9393
args: --features=stm32f303xc,stm32-usbd,rt,can,ld --lib --examples
9494

95+
check-minimal-feature-set:
96+
name: Check minimal feature set
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v2
100+
- uses: actions-rs/toolchain@v1
101+
with:
102+
toolchain: stable
103+
target: thumbv7em-none-eabihf
104+
override: true
105+
profile: minimal
106+
- uses: actions-rs/cargo@v1
107+
with:
108+
command: check
109+
args: --no-default-features --features=stm32f303xc --lib --examples
110+
95111
build-testsuite:
96112
name: Build Testsuite
97113
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2626
- Each pin aliases (`PA0`, `PA1`, ..) are defined under `gpio` module directly.
2727
Re-export from gpio port sub-modules are provided for compatibility. [#257]
2828

29+
### Fixed
30+
31+
- The "unproven" feature, which itself does enable the "embedded-hal/unproven"
32+
features, can no longer be disabled. ([#259])
33+
1. The "unproven" features are no longer unproven and used anywhere anyways.
34+
2. This crate was not building successfully without the unproven feature.
35+
2936
### Breaking Changes
3037

3138
- Refactor CAN to use the [`bxCan`](https://github.com/stm32-rs/bxcan) crate. ([#207])
@@ -360,6 +367,7 @@ let clocks = rcc
360367
[defmt]: https://github.com/knurling-rs/defmt
361368
[filter]: https://defmt.ferrous-systems.com/filtering.html
362369

370+
[#259]: https://github.com/stm32-rs/stm32f3xx-hal/pull/259
363371
[#257]: https://github.com/stm32-rs/stm32f3xx-hal/pull/257
364372
[#255]: https://github.com/stm32-rs/stm32f3xx-hal/pull/255
365373
[#252]: https://github.com/stm32-rs/stm32f3xx-hal/pull/252

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cortex-m = "0.7.2"
3838
cortex-m-rt = "0.6.14"
3939
defmt = { version = "0.2.2", optional = true }
4040
embedded-dma = "0.1.2"
41-
embedded-hal = "0.2.5"
41+
embedded-hal = { version = "0.2.5", features = ["unproven"] }
4242
embedded-time = "0.12.0"
4343
nb = "1.0.0"
4444
paste = "1.0.5"
@@ -68,8 +68,6 @@ cargo_metadata = "0.13.1"
6868
slice-group-by = "0.2.6"
6969

7070
[features]
71-
default = ["unproven"]
72-
unproven = ["embedded-hal/unproven"]
7371
device-selected = []
7472
direct-call-deprecated = []
7573
ld = []

src/gpio.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ use crate::{
6969
syscfg::SysCfg,
7070
};
7171

72-
#[cfg(feature = "unproven")]
7372
use crate::hal::digital::v2::{toggleable, InputPin, StatefulOutputPin};
7473

7574
/// Extension trait to split a GPIO peripheral in independent pins and registers
@@ -499,7 +498,6 @@ where
499498
}
500499
}
501500

502-
#[cfg(feature = "unproven")]
503501
impl<Gpio, Index, Mode> InputPin for Pin<Gpio, Index, Mode>
504502
where
505503
Gpio: marker::Gpio,
@@ -518,7 +516,6 @@ where
518516
}
519517
}
520518

521-
#[cfg(feature = "unproven")]
522519
impl<Gpio, Index, Otype> StatefulOutputPin for Pin<Gpio, Index, Output<Otype>>
523520
where
524521
Gpio: marker::Gpio,
@@ -534,7 +531,6 @@ where
534531
}
535532
}
536533

537-
#[cfg(feature = "unproven")]
538534
impl<Gpio, Index, Otype> toggleable::Default for Pin<Gpio, Index, Output<Otype>>
539535
where
540536
Gpio: marker::Gpio,

src/prelude.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub use crate::rcc::RccExt as _stm32f3xx_hal_rcc_RccExt;
1717
pub use crate::syscfg::SysCfgExt as _stm32f3xx_hal_syscfg_SysCfgExt;
1818
pub use crate::time::duration::Extensions as _stm32f3xx_hal_time_time_Extensions;
1919
pub use crate::time::rate::Extensions as _stm32f3xx_hal_time_rate_Extensions;
20-
#[cfg(feature = "unproven")]
2120
pub use crate::{
2221
hal::digital::v2::InputPin as _embedded_hal_digital_InputPin,
2322
hal::digital::v2::OutputPin as _embedded_hal_digital_OutputPin,

0 commit comments

Comments
 (0)