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: add @preserve comments to preserve the struct from being trimmed #124

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

tksky1
Copy link
Contributor

@tksky1 tksky1 commented Sep 6, 2023

Description

for IDL trimmer, add a way to use comments "@preserve" to preserve struct-likes from being trimmed.
fix some bugs for trimmer tool.

Motivation and Context

users need a way to avoid struct-likes being trimmed for a direct-use of the thrift-gen code, other than using them for rpc. marking @preserve in comments can be an easy way to stop trimmer from deleting the structs.

@tksky1 tksky1 requested review from a team as code owners September 6, 2023 12:09
@HeyJavaBean HeyJavaBean enabled auto-merge (squash) September 7, 2023 09:52
@HeyJavaBean HeyJavaBean merged commit d13e09a into cloudwego:main Sep 7, 2023
3 checks passed
tksky1 added a commit to tksky1/thriftgo that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants