From d30d8ebd6df53d8460ca90dbce716a4c1c07345a Mon Sep 17 00:00:00 2001 From: zenonet Date: Wed, 8 Oct 2025 20:08:26 +0200 Subject: [PATCH] Updated to 2024 edition --- Cargo.toml | 6 ++++-- src/main.rs | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f34c6f7..3f3173b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,11 @@ name = "esp-epd" version = "0.1.0" authors = ["zenonet "] -edition = "2021" +edition = "2024" resolver = "2" -rust-version = "1.77" + +# This was specified as 1.77 for the template, idk, how the rust version could cause problems... +#rust-version = "1.89" [[bin]] name = "esp-epd" diff --git a/src/main.rs b/src/main.rs index fbf29f7..97b04be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,14 +31,13 @@ use embedded_layout::{layout::linear::{spacing::DistributeFill, FixedMargin, Lin type Timetable = [[Option;8]; 5]; - -#[link_section = ".rtc.data"] +#[unsafe(link_section = ".rtc.data")] static mut WAKEUP_COUNTER: u64 = 0; -#[link_section = ".rtc.data"] +#[unsafe(link_section = ".rtc.data")] static mut FETCHING_FAIL_COUNT: Option = None; -#[link_section = ".rtc.data"] +#[unsafe(link_section = ".rtc.data")] static mut ERROR_MSG: Option<[u8; 2048]> = None; fn main() -> anyhow::Result<()> {