-
Notifications
You must be signed in to change notification settings - Fork 81
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
As a developer, I want to be able to customize the code generated by didc so that I don't have to do so with a sed script. #473
Comments
We are certainly working on this direction! Note that there is an ruditemary
This should already be fixed in the latest didc.
There is a config option to do this already. |
Cool, thank you for the information. I'll look at the latest |
Would it be an option to expose the config option via a hidden flag? Hidden in the sense that |
@chenyan-dfinity Regarding
Are they pub on an unreleased head of main? Let me check.... Yes, head of master works. I'll wait for your next release! :-) |
I think the latest release already has this: https://github.com/dfinity/candid/releases/tag/2023-09-27. I'm bad at bumping versions, |
Is your feature request related to a problem? Please describe.
Currently I have to post-process the Rust code generated by .didc. The changes include:
Describe the solution you'd like
Rather than making a huge long list of customizations, I would like to suggest that to start with we introduce a structure for managing customizations.
In particular I would like to propose an options file that could be called like this:
That options file could then, for example, contain
record{ rust = record {header=false}}
to suppress printing the Rust header.Describe alternatives you've considered
Additional context
Note: If approved in principle I would be happy to implement this and then make further proposals, one for every option.
The text was updated successfully, but these errors were encountered: