Skip to content

Commit 97a4d8b

Browse files
committed
Set some default features
- rt will be set by default by stm32f3 - ld is a convenience wrapper for the linker and makes it easier for newcomers - usb is relying on an external dependency - can is relying on an external dependency - rtc is relying on an external dependency - enumset is a convenience dependency for interrupt enums
1 parent c416cb7 commit 97a4d8b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- stm32f303x6
2525
# - stm32f303x8
2626
- stm32f303xb
27-
# - stm32f303xc
27+
- stm32f303xc
2828
- stm32f303xd
2929
# - stm32f303xe
3030
- stm32f328x8
@@ -37,10 +37,6 @@ jobs:
3737
- stm32f334x4
3838
# - stm32f334x6
3939
# - stm32f334x8
40-
features: ["rt"]
41-
include:
42-
- mcu: stm32f303xc
43-
features: rt,can,stm32-usbd,enumset
4440
steps:
4541
- uses: actions/checkout@v2
4642
- uses: actions-rs/toolchain@v1
@@ -49,7 +45,7 @@ jobs:
4945
target: thumbv7em-none-eabihf
5046
override: true
5147
profile: minimal
52-
- run: cargo check --features=${{ matrix.mcu }},ld,${{ matrix.features }} --lib --examples
48+
- run: cargo check --features=${{ matrix.mcu }} --lib --examples
5349

5450
# This is our MSRV. However this is only for documentation
5551
# purposes and should be increased if newer features are used.
@@ -138,7 +134,7 @@ jobs:
138134
- uses: actions-rs/cargo@v1
139135
with:
140136
command: doc
141-
args: --features=stm32f303xc,rt,stm32-usbd,can,enumset
137+
args: --features=stm32f303xc
142138

143139
clippy:
144140
name: Clippy
@@ -156,7 +152,7 @@ jobs:
156152
with:
157153
token: ${{ secrets.GITHUB_TOKEN }}
158154
args: >
159-
--features=stm32f303xc,ld,rt,stm32-usbd,can --lib --examples
155+
--features=stm32f303xc --lib --examples
160156
-- -D warnings
161157
162158
rustfmt:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2222

2323
- Make `rtc` an optional feature. Without that feature `rtcc` as a dependency is
2424
not needed. ([#283])
25+
- Enable `rt`, `usb`, `can`, `rtc` and `ld` feature by default.
26+
To disable that behavior, set `default-features = false`. ([#283])
2527

2628
## [v0.8.0] - 2021-08-16
2729

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ rtt-target = { version = "0.3.0", features = ["cortex-m"] }
6767
slice-group-by = "0.2.6"
6868

6969
[features]
70+
default = ["rt", "ld", "usb", "can", "rtc", "enumset"]
7071
device-selected = []
7172
direct-call-deprecated = []
7273
ld = []

0 commit comments

Comments
 (0)