Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should the aggregation macros be Derive macros? #197

Open
JoshOrndorff opened this issue Mar 21, 2024 · 0 comments
Open

Should the aggregation macros be Derive macros? #197

JoshOrndorff opened this issue Mar 21, 2024 · 0 comments

Comments

@JoshOrndorff
Copy link
Contributor

Currently the tuxedo_constraint_checker and tuxedo_verifier macros are attribute macros. But the main thing they are doing is implementing the ConstraintChecker and Verifier traits. Makes me think they should be derive macros.

Making them derive macros would make it more clear to users that they are ultimately just aggregating and implementing the same exact trait.

Rust Macro Reference docs: https://doc.rust-lang.org/reference/procedural-macros.html

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

No branches or pull requests

1 participant