diff --git a/derive_builder_core/Cargo.toml b/derive_builder_core/Cargo.toml index 79639cb..77c88ce 100644 --- a/derive_builder_core/Cargo.toml +++ b/derive_builder_core/Cargo.toml @@ -22,7 +22,7 @@ clippy = [] lib_has_std = [] [dependencies] -darling = "0.20.10" +darling = "0.24" proc-macro2 = "1.0.37" quote = "1.0.35" -syn = { version = "2.0.15", features = ["full", "extra-traits"] } +syn = { version = "3", features = ["full", "extra-traits"] } diff --git a/derive_builder_core/src/builder.rs b/derive_builder_core/src/builder.rs index dd33db3..c422def 100644 --- a/derive_builder_core/src/builder.rs +++ b/derive_builder_core/src/builder.rs @@ -3,7 +3,7 @@ use std::borrow::Cow; use proc_macro2::TokenStream; use quote::{format_ident, ToTokens, TokenStreamExt}; use syn::punctuated::Punctuated; -use syn::{Path, TraitBound, TraitBoundModifier, TypeParamBound}; +use syn::{Path, TraitBound, TraitBoundModifiers, TypeParamBound}; use crate::BuilderPattern; @@ -321,7 +321,8 @@ impl<'a> Builder<'a> { let clone_bound = TypeParamBound::Trait(TraitBound { paren_token: None, - modifier: TraitBoundModifier::None, + modifiers: TraitBoundModifiers::default(), + maybe: None, lifetimes: None, path: syn::parse_quote!(#crate_root::export::core::clone::Clone), }); diff --git a/derive_builder_macro/Cargo.toml b/derive_builder_macro/Cargo.toml index 258a54a..028dd61 100644 --- a/derive_builder_macro/Cargo.toml +++ b/derive_builder_macro/Cargo.toml @@ -29,4 +29,4 @@ lib_has_std = ["derive_builder_core/lib_has_std"] [dependencies] derive_builder_core = { version = "=0.20.2", path = "../derive_builder_core" } -syn = { version = "2.0.15", features = ["full", "extra-traits"] } +syn = { version = "3", features = ["full", "extra-traits"] }