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

macros-core: Refactor service code generation #327

Open
DennisInSky opened this issue Jun 20, 2024 · 0 comments
Open

macros-core: Refactor service code generation #327

DennisInSky opened this issue Jun 20, 2024 · 0 comments

Comments

@DennisInSky
Copy link
Member

DennisInSky commented Jun 20, 2024

File Location(s)

macros/core/src/service/mod.rs

Proposal

Make code generation for the gservice macro more modular:

  • patch service
  • generate exposure
  • generate meta
    etc.
    It may require some extra passes over the input, but we can sacrifice it in favor of code maintainability and readability
    Think of making use of genco if code generation is simpler than using proc_macro::quote
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