Skip to content

Commit a9b9f3a

Browse files
committed
chore(rust): register advent_of_code_ci cfg in all packages
1 parent f1e43ec commit a9b9f3a

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

2015/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ rayon = "1.10"
1717
regex = "1.8.1"
1818
serde = "1.0.163"
1919
serde_json = "1.0.96"
20+
21+
[lints.rust]
22+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(advent_of_code_ci)'] }

2018/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ regex = "1.9.1"
1919
regex-syntax = { version = "0.7.5", features = ["arbitrary"] }
2020
serde_scan = "0.4.1"
2121
text_io = "0.1.12"
22+
23+
[lints.rust]
24+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(advent_of_code_ci)'] }

2022/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ ndarray = "0.15.6"
1717
sscanf = "0.4.0"
1818
smallvec = "1.10.0"
1919
static_init = "1.0.3"
20-
pretty_assertions = "1.3.0"
20+
pretty_assertions = "1.3.0"
21+
[lints.rust]
22+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(advent_of_code_ci)'] }

runner/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ aoc_2022 = { path = "../2022" }
2020
aoc_2025 = { path = "../2025/rust" }
2121
clap = { version = "4.0", features = ["derive"] }
2222
anyhow = "1.0"
23+
24+
[lints.rust]
25+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(advent_of_code_ci)'] }

0 commit comments

Comments
 (0)