Skip to content

Conversation

@TheRustifyer
Copy link
Member

#11 canyon_entity proc-macro wasn't wiring back the other proc-macros attached to the user struct.

Was necessary to include the parsing for the struct's attributes in the Parse trait implementation, and then wiring back above the struct with the RepInterp<&Attribute> syntax.

quote! {
        #(#struct_attrs)*
        #struct_visibility struct #struct_name #struct_generics {
            #(#fields),*
        }
    }

@TheRustifyer TheRustifyer self-assigned this Oct 25, 2022
@TheRustifyer TheRustifyer merged commit 9d18941 into zerodaycode:main Oct 25, 2022
@TheRustifyer TheRustifyer deleted the GH-11-derive-macros-eats-other-macros branch October 25, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant