Skip to content

Commit 9fe84c0

Browse files
authored
Update dependecies (#349)
1 parent 4e1a257 commit 9fe84c0

File tree

6 files changed

+41
-44
lines changed

6 files changed

+41
-44
lines changed

.github/workflows/msrv.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: MSRV
22

33
on:
4-
push:
5-
branches: [master]
64
pull_request:
75
merge_group:
86

@@ -17,23 +15,20 @@ jobs:
1715
- uses: actions/checkout@v4
1816
- uses: dtolnay/rust-toolchain@stable
1917
with:
20-
toolchain: 1.59.0
18+
toolchain: 1.60.0
2119
target: thumbv7em-none-eabihf
22-
- run: cargo check --features=stm32f303xc,stm32-usbd,rt,can,ld --lib
20+
- run: cargo check --features=stm32f303xc,usb,rt,can,ld --lib
2321

2422
check-min-deps:
2523
name: Check Minimal Dependency Versions
2624
runs-on: ubuntu-latest
2725
steps:
2826
- uses: actions/checkout@v4
29-
- uses: dtolnay/rust-toolchain@stable
30-
with:
31-
toolchain: stable
32-
target: thumbv7em-none-eabihf
3327
- uses: dtolnay/rust-toolchain@stable
3428
with:
3529
toolchain: nightly
3630
target: thumbv7em-none-eabihf
3731
- run: cargo +nightly update -Z minimal-versions
38-
- run: cargo check --features=stm32f303xc,stm32-usbd,rt,can,ld --lib --examples
32+
- run: cargo tree
33+
- run: cargo check --features=stm32f303xc,usb,rt,can,ld --lib --examples
3934

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1818

1919
- Update `stm32f3` pac to v0.15.1 ([#335])
2020
- Update `bxcan` pac to v0.7.0 ([#335])
21-
- The MSRV was bumped to 1.59 ([#335])
2221
- Deprecate `Toggle` enum and use `Switch` instead for better naming purposes
2322
([#334])
2423
- Add `impl From<Toggle> for Switch` to reduce churn.
@@ -28,6 +27,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2827
- Remove `Serial::split`, which possibly creates two mutable references two
2928
one Serial instance, which could've caused UB. The use case of this function
3029
was hard to find out anyway. ([#351])
30+
- Remove `defmt-*` features (`defmt` feature is still available), to finalize
31+
migration from `defmt-0.2.x` -> `defmt-0.3.x`. ([#349])
32+
- Removed implicit `stm32-usbd` feature (use `usb` instead) ([#349])
3133

3234
### Added
3335

@@ -48,6 +50,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4850
It is also not consistent with the rest of the crates API. ([#352])
4951
- Use [critical-section] crate instead of `interrupt_free`, which is not always
5052
sound. ([#350])
53+
It is also not consistent with the rest of the crates API.
54+
- Use [critical-section] crate instead of `interrupt_free`, which is not always
55+
sound.
56+
- The MSRV was bumped to 1.60 ([#349])
5157

5258
[critical-section]: https://github.com/rust-embedded/critical-section
5359

@@ -619,6 +625,7 @@ let clocks = rcc
619625
[#352]: https://github.com/stm32-rs/stm32f3xx-hal/pull/352
620626
[#351]: https://github.com/stm32-rs/stm32f3xx-hal/pull/351
621627
[#350]: https://github.com/stm32-rs/stm32f3xx-hal/pull/350
628+
[#349]: https://github.com/stm32-rs/stm32f3xx-hal/pull/349
622629
[#345]: https://github.com/stm32-rs/stm32f3xx-hal/pull/345
623630
[#346]: https://github.com/stm32-rs/stm32f3xx-hal/pull/346
624631
[#347]: https://github.com/stm32-rs/stm32f3xx-hal/pull/347

Cargo.toml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/stm32f3xx-hal"
1616
version = "0.9.2"
1717
exclude = ["codegen", ".markdownlint.yml"]
1818
resolver = "2"
19-
rust-version = "1.59"
19+
rust-version = "1.60"
2020

2121
[package.metadata.docs.rs]
2222
features = ["stm32f303xc", "rt", "usb", "can", "enumset"]
@@ -29,49 +29,44 @@ members = [".", "testsuite", "codegen"]
2929
[dependencies]
3030
bxcan = { version = "0.7.0", optional = true }
3131
cfg-if = "1.0.0"
32-
cortex-m = "0.7.4"
32+
cortex-m = "0.7.7"
3333
cortex-m-rt = "0.7.3"
3434
critical-section = "1.1.2"
3535
defmt = { version = ">=0.2.3, <0.4.0", optional = true }
3636
embedded-dma = "0.2.0"
37-
embedded-hal = { version = "0.2.5", features = ["unproven"] }
38-
embedded-time = "0.12.0"
39-
enumset = { version = "1.0.6", optional = true }
40-
nb = "1.0.0"
37+
embedded-hal = { version = "0.2.7", features = ["unproven"] }
38+
embedded-time = "0.12.1"
39+
enumset = { version = "1.1.3", optional = true }
40+
nb = "1.1.0"
4141
num-traits = { version = "0.2.17", default-features = false}
42-
paste = "1.0.5"
42+
paste = "1.0.14"
4343
rtcc = { version = "0.3.0", optional = true }
4444
stm32-usbd = { version = "0.6.0", optional = true }
4545
stm32f3 = { version = "0.15.1", default-features = false }
4646
void = { version = "1.0.2", default-features = false }
4747

4848
[dev-dependencies]
49-
cortex-m-rtic = "1.0"
49+
cortex-m-rtic = "1.1"
5050
cortex-m-semihosting = "0.5.0"
51-
defmt = "0.3.0"
51+
defmt = "0.3.5"
5252
defmt-rtt = "0.4.0"
53-
defmt-test = "0.3.0"
54-
panic-probe = "0.3.0"
55-
panic-rtt-target = { version = "0.1", features = ["cortex-m"] }
53+
defmt-test = "0.3.1"
54+
panic-probe = "0.3.1"
55+
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
5656
panic-semihosting = "0.6.0"
57-
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
57+
rtt-target = { version = "0.4.0" }
5858
systick-monotonic = "1.0"
59-
usb-device = "0.2.8"
60-
usbd-serial = "0.1.1"
59+
usb-device = "0.3.1"
60+
usbd-serial = "0.2.0"
6161

6262
[build-dependencies]
63-
slice-group-by = "0.3.0"
63+
slice-group-by = "0.3.1"
6464

6565
[features]
66-
can = ["bxcan"]
66+
can = ["dep:bxcan"]
6767
default = ["rt", "ld", "usb", "can", "rtc", "enumset"]
68-
defmt-debug = ["defmt"]
68+
defmt = ["dep:defmt"]
6969

70-
defmt-default = ["defmt"]
71-
defmt-error = ["defmt"]
72-
defmt-info = ["defmt"]
73-
defmt-trace = ["defmt"]
74-
defmt-warn = ["defmt"]
7570
device-selected = []
7671
direct-call-deprecated = []
7772

@@ -90,7 +85,7 @@ mem-c = []
9085
mem-d = []
9186
mem-e = []
9287
rt = ["stm32f3/rt"]
93-
rtc = ["rtcc"]
88+
rtc = ["dep:rtcc"]
9489

9590
# Any changes here should be mirrored in README.md, build.rs, src/lib.rs, and
9691
# .github/workflows/ci.yml.
@@ -135,7 +130,7 @@ svd-f302 = ["stm32f3/stm32f302"]
135130
svd-f303 = ["stm32f3/stm32f303"]
136131
svd-f373 = ["stm32f3/stm32f373"]
137132
svd-f3x4 = ["stm32f3/stm32f3x4"]
138-
usb = ["stm32-usbd"]
133+
usb = ["dep:stm32-usbd"]
139134

140135
# cargo build/run
141136
[profile.dev]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Crate](https://img.shields.io/crates/v/stm32f3xx-hal.svg)](https://crates.io/crates/stm32f3xx-hal)
55
[![Docs](https://docs.rs/stm32f3xx-hal/badge.svg)](https://docs.rs/stm32f3xx-hal)
66
[![Crates.io](https://img.shields.io/crates/d/stm32f3xx-hal.svg)](https://crates.io/crates/stm32f3xx-hal)
7-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.59+-blue.svg)
7+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.60+-blue.svg)
88

99
`stm32f3xx-hal` contains a multi device hardware abstraction on top of the
1010
peripheral access API for the STMicro STM32F3 series microcontrollers. The
@@ -138,7 +138,7 @@ See the [examples folder](examples) for more example programs.
138138

139139
## Minimum Supported Rust Version (MSRV)
140140

141-
This crate is guaranteed to compile on stable Rust 1.59.0 and up. It *might*
141+
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It *might*
142142
compile with older versions but that may change in any new patch release.
143143

144144
<!-- This should not prevent anyone to use newer features. -->

codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2018"
99
anyhow = "1"
1010
once_cell = "1"
1111
regex = "1"
12-
serde-xml-rs = "0.4"
12+
serde-xml-rs = "0.6"
1313

1414
[dependencies.structopt]
1515
version = "0.3"

testsuite/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ harness = false
5555
cfg-if = "1.0"
5656
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
5757
cortex-m-rt = "0.7.3"
58-
defmt = "0.3.0"
58+
defmt = "0.3.5"
5959
defmt-rtt = "0.4.0"
60-
defmt-test = "0.3.0"
61-
enumset = { version = "1.0.6" }
60+
defmt-test = "0.3.1"
61+
enumset = { version = "1.1.3" }
6262
# TODO: Set stm32f303xc as default, but make it overwritable
6363
stm32f3xx-hal = { path = "..", features = ["defmt"]}
64-
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
65-
nb = "1.0.0"
66-
num-traits = { version = "0.2.14", default-features = false }
64+
panic-probe = { version = "0.3.1", features = ["print-defmt"] }
65+
nb = "1.1.0"
66+
num-traits = { version = "0.2.17", default-features = false }
6767

6868
[features]
6969
# enable all defmt logging levels

0 commit comments

Comments
 (0)