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

Automatically generate Context boilerplate for driver callbacks #122

Open
xFrednet opened this issue Mar 8, 2023 · 0 comments
Open

Automatically generate Context boilerplate for driver callbacks #122

xFrednet opened this issue Mar 8, 2023 · 0 comments
Labels
A-infra Area: Infrastructure and CI magic :sparkles: C-enhancement Category: New feature or request E-help-wanted Participation: Issues with some complexity and where help would be highly appreciated

Comments

@xFrednet
Copy link
Member

xFrednet commented Mar 8, 2023

Adding a new driver callback currently includes changes in several files with a few type conversions. This always adds some friction for simple changes. Ideally, I'd like a way to generate this boilerplate code with all the type conversion. This would make the interface a bit safer, help with implementations and reviews.

I think it would be better to generate the code with a tool and automatically replace it in the file. Similar to how cargo dev update_lints works in Clippy. Derive macros can sometimes be a bit iffy with IDEs and harder to debug. But I'm open to suggestions :)

See #121 for an example, of what boilerplate is needed

@xFrednet xFrednet added C-enhancement Category: New feature or request E-help-wanted Participation: Issues with some complexity and where help would be highly appreciated A-infra Area: Infrastructure and CI magic :sparkles: labels Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-infra Area: Infrastructure and CI magic :sparkles: C-enhancement Category: New feature or request E-help-wanted Participation: Issues with some complexity and where help would be highly appreciated
Projects
None yet
Development

No branches or pull requests

1 participant