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

feat(macros): Implement a derive-where-like macro for serde #5220

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DCNick3
Copy link
Contributor

@DCNick3 DCNick3 commented Nov 5, 2024

Context

Needed for me to finish integrating query projections (#5063) into the iroha codebase.

Completes the second part of and closes #5130.

Solution

A macro with a syntax similar to derive-where that emits the #[serde(bounds(...))] attributes


Review notes

  • The first commit is just a refactor splitting iroha_derive crate into files; the second commit is the interesting part

Checklist

  • I've read CONTRIBUTING.md.
  • I've written tests for the code changes.
  • All review comments have been resolved.
  • All CI checks pass.

Signed-off-by: ⭐️NINIKA⭐️ <dcnick3@users.noreply.github.com>
Signed-off-by: ⭐️NINIKA⭐️ <dcnick3@users.noreply.github.com>
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.

Associated types and derive trait bounds
2 participants