diff --git a/bindings-generator/Cargo.toml b/bindings-generator/Cargo.toml index 3c89fe956..b2cb28fae 100644 --- a/bindings-generator/Cargo.toml +++ b/bindings-generator/Cargo.toml @@ -23,6 +23,6 @@ proc-macro2 = "1" quote = "1" regex = { version = "1.5.5", default-features = false, features = ["std"] } # for security: https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html roxmltree = "0.18" -syn = { version = "1", features = ["full", "extra-traits", "visit"] } +syn = { version = "2", features = ["full", "extra-traits", "visit"] } unindent = "0.2.0" which = { optional = true, version = "4" } diff --git a/gdnative-derive/Cargo.toml b/gdnative-derive/Cargo.toml index f7c77c55d..41244fb44 100644 --- a/gdnative-derive/Cargo.toml +++ b/gdnative-derive/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.67" proc-macro = true [dependencies] -syn = { version = "1", features = ["full", "extra-traits", "visit"] } +syn = { version = "2", features = ["full", "extra-traits", "visit"] } quote = "1" proc-macro2 = "1" proc-macro-crate = "1" diff --git a/impl/proc-macros/Cargo.toml b/impl/proc-macros/Cargo.toml index fa4758818..7b2883e67 100644 --- a/impl/proc-macros/Cargo.toml +++ b/impl/proc-macros/Cargo.toml @@ -14,6 +14,6 @@ rust-version = "1.67" proc-macro = true [dependencies] -syn = { version = "1", features = ["full", "extra-traits", "visit", "visit-mut"] } +syn = { version = "2", features = ["full", "extra-traits", "visit", "visit-mut"] } quote = "1" proc-macro2 = "1"