diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 0fc52ab..24b55c4 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -11,8 +11,8 @@ repository = "https://github.com/RReverser/wasmbin" proc-macro = true [dependencies] -synstructure = "0.12.6" +synstructure = "0.13.0" quote = "1.0.35" proc-macro2 = "1.0.76" -syn = "1.0.109" +syn = "2.0.48" thiserror = "1.0.56" diff --git a/derive/src/lib.rs b/derive/src/lib.rs index f73ffa4..9fd14f2 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -40,9 +40,9 @@ fn struct_discriminant<'v>(v: &VariantInfo<'v>) -> syn::Result { + } if meta.path().is_ident("wasmbin") => { syn::custom_keyword!(discriminant); Some( @@ -137,7 +137,7 @@ fn parse_repr(s: &Structure) -> syn::Result { s.ast() .attrs .iter() - .find(|attr| attr.path.is_ident("repr")) + .find(|attr| attr.path().is_ident("repr")) .ok_or_else(|| { syn::Error::new_spanned( &s.ast().ident,