Skip to content

Commit 41e50c0

Browse files
chore: rust 2024 compatibility
1 parent d87eada commit 41e50c0

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
- name: Set Rust 1.65.0 as default
6363
run: rustup default nightly-2022-09-18
6464
- name: Check MSRV
65+
env:
66+
RUSTFLAGS: --allow unknown_lints
6567
run: cargo check --all-features
6668

6769
docsrs:

Makefile.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ CLIPPY_FLAGS_LOOM = "${CFG_LOOM} ${CLIPPY_FLAGS}"
77
[config]
88
default_to_workspace = false
99

10+
# Install a "no_std" target.
11+
[tasks.install-no-std-target]
12+
command = "rustup"
13+
args = ["target", "add", "thumbv7m-none-eabi"]
14+
1015
# Build package for no_std environment.
1116
[tasks.no-std]
1217
command = "cargo"
1318
args = ["hack", "build", "--target", "thumbv7m-none-eabi", "--feature-powerset",
1419
"--no-dev-deps", "--skip", "yield"]
20+
dependencies = ["install-no-std-target"]
1521

1622
# Build docs for docs.rs.
1723
[tasks.docsrs]
@@ -28,7 +34,7 @@ args = ["rustdoc", "--all-features", "--open", "--", "--default-theme", "ayu"]
2834
# Link: https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
2935
toolchain = "nightly-2022-09-18"
3036
command = "cargo"
31-
env = { "CARGO_UNSTABLE_SPARSE_REGISTRY" = "true" }
37+
env = { "CARGO_UNSTABLE_SPARSE_REGISTRY" = "true", "RUSTFLAGS" = "--allow unknown_lints" }
3238
args = ["check", "--all-features"]
3339

3440
# Check semver viloations.

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
edition = "2021"
1+
edition = "2024"
22
use_small_heuristics = "Max"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
#![allow(clippy::module_name_repetitions)]
100100
#![allow(clippy::inline_always)]
101101
#![allow(clippy::doc_markdown)]
102-
#![warn(rust_2021_compatibility)]
102+
#![warn(rust_2024_compatibility)]
103103
#![warn(missing_docs)]
104104

105105
extern crate alloc;

0 commit comments

Comments
 (0)