Skip to content

Commit 185e39c

Browse files
1313Copilot
andcommitted
ci: cap dev-only bitflags below 2.12 to fix dispatch2 recursion overflow
bitflags 2.12.0 overflows the macro recursion limit while compiling the transitive dispatch2 crate (pulled in via the bevy dev-dependency), breaking the fresh-resolution --all-features --all-targets lint/test builds in CI. Cargo.lock is gitignored, so CI always resolves to the latest compatible versions and picked the broken 2.12.0. Constrain the 2.x bitflags bucket to <2.12; this is dev-only and does not change the published dependency set. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d41b205 commit 185e39c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ apple-cf = { version = ">=0.6, <0.10", default-features = false, features = ["cg
6868
apple-metal = { version = ">=0.6, <0.9", default-features = false }
6969

7070
[dev-dependencies]
71+
# Cap the transitive bitflags pulled in via the bevy dev-dependency: bitflags
72+
# 2.12.0 overflows the macro recursion limit while compiling dispatch2, which
73+
# breaks `--all-targets`/`--all-features` lint and test builds. This is a
74+
# dev-only constraint and does not affect the published dependency set.
75+
bitflags = ">=2.0, <2.12"
7176
png = "0.18"
7277
tokio = { version = "1", features = ["sync", "rt", "rt-multi-thread", "macros", "test-util"] }
7378
winit = "0.30"

0 commit comments

Comments
 (0)