Skip to content

Commit 3bdd818

Browse files
committed
Adopt Rust 2024 edition
1 parent 262222c commit 3bdd818

File tree

16 files changed

+47
-36
lines changed

16 files changed

+47
-36
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ packages maintained within this repository.
55

66
## [Unreleased]
77

8+
**BREAKING** All packages use the Rust 2024 edition.
9+
810
## [0.3.4] 2025-03-01
911

1012
Add support for new MCUS:

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt-boot-gen"
3-
version = "0.3.4"
4-
authors.workspace = true
3+
version = "0.4.0"
54
edition.workspace = true
65
license.workspace = true
76
repository.workspace = true
@@ -10,10 +9,10 @@ keywords.workspace = true
109
description = """
1110
Generate data structures for booting iMXRT processors.
1211
"""
12+
resolver = "3"
1313

1414
[workspace.package]
15-
authors = ["Ian McIntyre <[email protected]>"]
16-
edition = "2021"
15+
edition = "2024"
1716
license = "MIT OR Apache-2.0"
1817
repository = "https://github.com/imxrt-rs/imxrt-boot-gen"
1918
categories = [

fcbs/imxrt1010evk/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt1010evk-fcb"
3-
version = "0.1.0"
4-
authors.workspace = true
3+
version = "0.2.0"
54
edition.workspace = true
65
license.workspace = true
76
repository.workspace = true
@@ -10,7 +9,7 @@ keywords.workspace = true
109
description = "FlexSPI configuration block for NXP's IMXRT1010EVK"
1110

1211
[dependencies.imxrt-boot-gen]
13-
version = "0.3"
12+
version = "0.4.0"
1413
path = "../.."
1514
features = ["imxrt1010"]
1615

fcbs/imxrt1010evk/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ pub const SERIAL_NOR_CONFIGURATION_BLOCK: nor::ConfigurationBlock =
6464
.sector_size(4096)
6565
.ip_cmd_serial_clk_freq(nor::SerialClockFrequency::MHz30);
6666

67-
#[no_mangle]
68-
#[cfg_attr(all(target_arch = "arm", target_os = "none"), link_section = ".fcb")]
67+
#[unsafe(no_mangle)]
68+
#[cfg_attr(
69+
all(target_arch = "arm", target_os = "none"),
70+
unsafe(link_section = ".fcb")
71+
)]
6972
pub static FLEXSPI_CONFIGURATION_BLOCK: nor::ConfigurationBlock = SERIAL_NOR_CONFIGURATION_BLOCK;

fcbs/imxrt1060evk/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt1060evk-fcb"
3-
version = "0.1.0"
4-
authors.workspace = true
3+
version = "0.2.0"
54
edition.workspace = true
65
license.workspace = true
76
repository.workspace = true
@@ -10,7 +9,7 @@ keywords.workspace = true
109
description = "FlexSPI configuration block for NXP's IMXRT1060EVK"
1110

1211
[dependencies.imxrt-boot-gen]
13-
version = "0.3"
12+
version = "0.4.0"
1413
path = "../.."
1514
features = ["imxrt1060"]
1615

fcbs/imxrt1060evk/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ pub const SERIAL_NOR_CONFIGURATION_BLOCK: nor::ConfigurationBlock =
6363
.sector_size(4096)
6464
.ip_cmd_serial_clk_freq(nor::SerialClockFrequency::MHz30);
6565

66-
#[no_mangle]
67-
#[cfg_attr(all(target_arch = "arm", target_os = "none"), link_section = ".fcb")]
66+
#[unsafe(no_mangle)]
67+
#[cfg_attr(
68+
all(target_arch = "arm", target_os = "none"),
69+
unsafe(link_section = ".fcb")
70+
)]
6871
pub static FLEXSPI_CONFIGURATION_BLOCK: nor::ConfigurationBlock = SERIAL_NOR_CONFIGURATION_BLOCK;

fcbs/imxrt1170evk/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt1170evk-fcb"
3-
version = "0.1.0"
4-
authors.workspace = true
3+
version = "0.2.0"
54
edition.workspace = true
65
license.workspace = true
76
repository.workspace = true
@@ -10,7 +9,7 @@ keywords.workspace = true
109
description = "FlexSPI configuration block for NXP's IMXRT1170EVK"
1110

1211
[dependencies.imxrt-boot-gen]
13-
version = "0.3"
12+
version = "0.4.0"
1413
path = "../.."
1514
features = ["imxrt1170"]
1615

fcbs/imxrt1170evk/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ pub const SERIAL_NOR_CONFIGURATION_BLOCK: nor::ConfigurationBlock =
6464
.ip_cmd_serial_clk_freq(nor::SerialClockFrequency::MHz30)
6565
.block_size(64 * 1024);
6666

67-
#[no_mangle]
68-
#[cfg_attr(all(target_arch = "arm", target_os = "none"), link_section = ".fcb")]
67+
#[unsafe(no_mangle)]
68+
#[cfg_attr(
69+
all(target_arch = "arm", target_os = "none"),
70+
unsafe(link_section = ".fcb")
71+
)]
6972
pub static FLEXSPI_CONFIGURATION_BLOCK: nor::ConfigurationBlock = SERIAL_NOR_CONFIGURATION_BLOCK;
7073

7174
#[cfg(test)]

fcbs/imxrt1180evk/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "imxrt1180evk-fcb"
3-
version = "0.1.0"
4-
authors.workspace = true
3+
version = "0.2.0"
54
edition.workspace = true
65
license.workspace = true
76
repository.workspace = true
@@ -10,7 +9,7 @@ keywords.workspace = true
109
description = "FlexSPI configuration block for NXP's IMXRT1180EVK"
1110

1211
[dependencies.imxrt-boot-gen]
13-
version = "0.3.3"
12+
version = "0.4.0"
1413
path = "../.."
1514
features = ["imxrt1180"]
1615

fcbs/imxrt1180evk/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ pub const SERIAL_NOR_CONFIGURATION_BLOCK: nor::ConfigurationBlock =
6464
.ip_cmd_serial_clk_freq(nor::SerialClockFrequency::MHz30)
6565
.block_size(64 * 1024);
6666

67-
#[no_mangle]
68-
#[cfg_attr(all(target_arch = "arm", target_os = "none"), link_section = ".fcb")]
67+
#[unsafe(no_mangle)]
68+
#[cfg_attr(
69+
all(target_arch = "arm", target_os = "none"),
70+
unsafe(link_section = ".fcb")
71+
)]
6972
pub static FLEXSPI_CONFIGURATION_BLOCK: nor::ConfigurationBlock = SERIAL_NOR_CONFIGURATION_BLOCK;
7073

7174
#[cfg(test)]

0 commit comments

Comments
 (0)