Skip to content

Commit 84e5c01

Browse files
authored
Merge pull request #628 from wt/update_msrv
Update msrv
2 parents 674daef + f2ad315 commit 84e5c01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+298
-289
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,15 @@ jobs:
1717

1818
include:
1919
# Test MSRV
20-
- rust: 1.71.0
21-
# Should be set to true for >= 1.81.0
22-
test_cortex_m_types: false
20+
- rust: 1.85.0
2321

2422
# Test nightly but don't fail
2523
- rust: nightly
26-
test_cortex_m_types: true
2724
experimental: true
2825
steps:
2926
- uses: actions/checkout@v4
3027
- uses: dtolnay/rust-toolchain@master
3128
with:
3229
toolchain: ${{ matrix.rust }}
3330
- name: Run tests
34-
if: ${{ matrix.test_cortex_m_types }}
3531
run: cargo test --all --exclude cortex-m-rt --exclude testsuite --features cortex-m/critical-section-single-core
36-
- name: Run tests for < 1.81.0 (need to exclude cortex-m-types)
37-
if: ${{ matrix.test_cortex_m_types == false }}
38-
run: cargo test --all --exclude cortex-m-rt --exclude testsuite --exclude cortex-m-types --features cortex-m/critical-section-single-core

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: dtolnay/rust-toolchain@1.81
12+
- uses: dtolnay/rust-toolchain@1.85
1313
with:
1414
components: clippy
1515
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

.github/workflows/rt-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
continue-on-error: ${{ matrix.experimental || false }}
1212
strategy:
1313
matrix:
14-
rust: [nightly, stable, 1.71.0]
14+
rust: [nightly, stable, 1.85.0]
1515

1616
include:
1717
# Nightly is only for reference and allowed to fail

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
resolver = "2"
2+
resolver = "3"
33
members = [
44
"cortex-m",
55
"cortex-m-types",

cortex-m-rt/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
from an external device. Note that this relies on the bootloader to have already
1717
copied `.data` to the VMA before relinquishing control.
1818
- Updated references from 'Cortex-M Team' to 'Arm Team'
19-
- Bump MSRV to 1.71
19+
- Bump MSRV to 1.85
2020

2121
## [v0.7.5]
2222

cortex-m-rt/Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
[package]
2-
authors = [
3-
"The Embedded Devices Working Group's Arm Team <cortex-m@teams.rust-embedded.org>",
4-
"Jorge Aparicio <jorge@japaric.io>",
5-
"Hideki Sekine <sekineh@me.com>",
6-
]
72
categories = ["embedded", "no-std"]
83
description = "Minimal runtime / startup for Cortex-M microcontrollers"
94
documentation = "https://docs.rs/cortex-m-rt/"
@@ -15,8 +10,8 @@ repository = "https://github.com/rust-embedded/cortex-m"
1510
version = "0.7.5"
1611
autoexamples = true
1712
links = "cortex-m-rt" # Prevent multiple versions of cortex-m-rt being linked
18-
edition = "2021"
19-
rust-version = "1.71"
13+
edition = "2024"
14+
rust-version = "1.85"
2015

2116
[dependencies]
2217
cortex-m-rt-macros = { path = "macros", version = "=0.7.5" }

cortex-m-rt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is developed and maintained by the [Embedded Devices Working Group'
1111

1212
## Minimum Supported Rust Version (MSRV)
1313

14-
This crate is guaranteed to compile on stable Rust 1.61.0 and up. It *might*
14+
This crate is guaranteed to compile on stable Rust 1.85 and up. It *might*
1515
compile with older versions but that may change in any new patch release.
1616

1717
## License

cortex-m-rt/examples/device.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Manually create the interrupts portion of the vector table
22
3-
#![deny(unsafe_code)]
43
#![deny(warnings)]
54
#![no_main]
65
#![no_std]
@@ -22,14 +21,14 @@ pub union Vector {
2221
reserved: usize,
2322
}
2423

25-
extern "C" {
24+
unsafe extern "C" {
2625
fn WWDG();
2726
fn PVD();
2827
}
2928

3029
#[allow(unsafe_code)]
31-
#[link_section = ".vector_table.interrupts"]
32-
#[no_mangle]
30+
#[unsafe(link_section = ".vector_table.interrupts")]
31+
#[unsafe(no_mangle)]
3332
pub static __INTERRUPTS: [Vector; 3] = [
3433
Vector { handler: WWDG },
3534
Vector { reserved: 0 },

cortex-m-rt/examples/hard-fault-trampoline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern crate cortex_m_rt;
1010
extern crate panic_halt;
1111

1212
use core::arch::asm;
13-
use cortex_m_rt::{entry, exception, ExceptionFrame};
13+
use cortex_m_rt::{ExceptionFrame, entry, exception};
1414

1515
// This defines both `HardFault` and `_HardFault`. Both should have
1616
// link_section attributes placing them at the end of the .text section,

cortex-m-rt/examples/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern crate cortex_m_rt as rt;
88
extern crate panic_halt;
99

10-
#[no_mangle]
10+
#[unsafe(no_mangle)]
1111
pub unsafe extern "C" fn main() -> ! {
1212
loop {}
1313
}

0 commit comments

Comments
 (0)