Skip to content

Commit 5ec86f5

Browse files
committed
Bump MSRV/edition
1 parent e0cff0f commit 5ec86f5

22 files changed

Lines changed: 34 additions & 36 deletions

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: "ubuntu-latest"
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: dtolnay/rust-toolchain@1.84
17+
- uses: dtolnay/rust-toolchain@1.85
1818
with:
1919
components: rustfmt
2020
- run: cargo fmt --all -- --check
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: "ubuntu-latest"
2525
steps:
2626
- uses: actions/checkout@v4
27-
- uses: dtolnay/rust-toolchain@1.84
27+
- uses: dtolnay/rust-toolchain@1.85
2828
- run: cargo test --lib --target x86_64-unknown-linux-gnu
2929
- run: cargo test --doc --target x86_64-unknown-linux-gnu
3030

@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- uses: dtolnay/rust-toolchain@master
3737
with:
38-
toolchain: 1.75
38+
toolchain: 1.85
3939
- run: cargo build --lib --target x86_64-unknown-linux-gnu
4040
- run: cargo build --lib --target x86_64-unknown-linux-gnu --features async
4141
- run: cargo doc --target x86_64-unknown-linux-gnu
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
steps:
6767
- uses: actions/checkout@v4
68-
- uses: dtolnay/rust-toolchain@1.84
68+
- uses: dtolnay/rust-toolchain@1.85
6969
with:
7070
components: rustfmt
7171
- run: rustup target add ${{matrix.target}}
@@ -75,4 +75,3 @@ jobs:
7575
- if: ${{ matrix.examples }}
7676
run: cargo build --target ${{matrix.target}} --all-features --examples --release
7777
- run: cargo doc --all-features --target ${{matrix.target }}
78-

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SSD1306 monochrome OLED display.
1515

1616
### Changed
1717
- Improved interface utilisation when the buffer to be sent is contiguous.
18+
- **(breaking)** Increased MSRV to 1.85.0, Rust edition to 2024
1819

1920
## [0.10.0] - 2025-03-22
2021
### Changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name = "ssd1306"
99
readme = "README.md"
1010
repository = "https://github.com/rust-embedded-community/ssd1306"
1111
version = "0.10.0"
12-
edition = "2021"
12+
edition = "2024"
1313
exclude = ["build.rs", "build.sh", "memory.x", "doc", "*.jpg", "*.png", "*.bmp"]
14-
rust-version = "1.75.0"
14+
rust-version = "1.85.0"
1515
resolver = "2"
1616

1717
[package.metadata.docs.rs]

examples/async_i2c_spi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
use defmt_rtt as _;
3131
use embassy_executor::Spawner;
3232
use embassy_futures::join::join;
33-
use embassy_stm32::{bind_interrupts, gpio, i2c, peripherals, spi::Spi, time::Hertz, Config};
33+
use embassy_stm32::{Config, bind_interrupts, gpio, i2c, peripherals, spi::Spi, time::Hertz};
3434
use embedded_graphics::{
3535
image::{Image, ImageRaw},
3636
pixelcolor::BinaryColor,
3737
prelude::*,
3838
};
3939
use panic_probe as _;
40-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306Async};
40+
use ssd1306::{I2CDisplayInterface, Ssd1306Async, prelude::*};
4141

4242
bind_interrupts!(struct Irqs {
4343
I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>;

examples/async_terminal_i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use defmt_rtt as _;
2121
use embassy_executor::Spawner;
2222
use embassy_stm32::{bind_interrupts, i2c, peripherals, time::Hertz};
2323
use panic_probe as _;
24-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306Async};
24+
use ssd1306::{I2CDisplayInterface, Ssd1306Async, prelude::*};
2525

2626
bind_interrupts!(struct Irqs {
2727
I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>;

examples/bmp_i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use embassy_stm32::time::Hertz;
2929
use embassy_stm32::{bind_interrupts, i2c, peripherals};
3030
use embedded_graphics::{image::Image, pixelcolor::Rgb565, prelude::*};
3131
use panic_probe as _;
32-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306};
32+
use ssd1306::{I2CDisplayInterface, Ssd1306, prelude::*};
3333

3434
use tinybmp::Bmp;
3535

examples/graphics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use embedded_graphics::{
3535
primitives::{Circle, PrimitiveStyleBuilder, Rectangle, Triangle},
3636
};
3737
use panic_probe as _;
38-
use ssd1306::{prelude::*, Ssd1306};
38+
use ssd1306::{Ssd1306, prelude::*};
3939

4040
#[entry]
4141
fn main() -> ! {

examples/graphics_i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use embedded_graphics::{
2929
primitives::{Circle, PrimitiveStyleBuilder, Rectangle, Triangle},
3030
};
3131
use panic_probe as _;
32-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306};
32+
use ssd1306::{I2CDisplayInterface, Ssd1306, prelude::*};
3333

3434
#[entry]
3535
fn main() -> ! {

examples/graphics_i2c_128x32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use embedded_graphics::{
2929
primitives::{Circle, PrimitiveStyleBuilder, Rectangle, Triangle},
3030
};
3131
use panic_probe as _;
32-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306};
32+
use ssd1306::{I2CDisplayInterface, Ssd1306, prelude::*};
3333

3434
#[entry]
3535
fn main() -> ! {

examples/graphics_i2c_72x40.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use embedded_graphics::{
2929
primitives::{Circle, PrimitiveStyleBuilder, Rectangle, Triangle},
3030
};
3131
use panic_probe as _;
32-
use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306};
32+
use ssd1306::{I2CDisplayInterface, Ssd1306, prelude::*};
3333

3434
#[entry]
3535
fn main() -> ! {

0 commit comments

Comments
 (0)