Skip to content

Commit 9b114a4

Browse files
authored
enable syn/full in bevy_render_macros (#20034)
# Objective - `bevy_render_macros` fails to build on its own: ``` error[E0432]: unresolved import `syn::Pat` --> crates/bevy_render/macros/src/specializer.rs:13:69 | 13 | DeriveInput, Expr, Field, Ident, Index, Member, Meta, MetaList, Pat, Path, Token, Type, | ^^^ | | | no `Pat` in the root | help: a similar name exists in the module: `Path` | note: found an item that was configured out --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.104/src/lib.rs:485:15 | 485 | FieldPat, Pat, PatConst, PatIdent, PatLit, PatMacro, PatOr, PatParen, PatPath, PatRange, | ^^^ note: the item is gated behind the `full` feature --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.104/src/lib.rs:482:7 | 482 | #[cfg(feature = "full")] | ^^^^^^^^^^^^^^^^ ``` ## Solution - Enable the `full` feature of `syn`
1 parent 1cbd67f commit 9b114a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_render/macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ proc-macro = true
1414
[dependencies]
1515
bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.17.0-dev" }
1616

17-
syn = "2.0"
17+
syn = { version = "2.0", features = ["full"] }
1818
proc-macro2 = "1.0"
1919
quote = "1.0"
2020

0 commit comments

Comments
 (0)