-
Notifications
You must be signed in to change notification settings - Fork 134
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 vendored support #411
Conversation
Signed-off-by: Xuanwo <[email protected]>
53bf03c
to
36fccfd
Compare
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Should wait for #412 |
cc @andylokandy, @ekexium & @pingyu, would you like to take a review? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without install PROTOC
I'd prefer to bundle PROTOC or use protobuf-src instead. Like what is done in tikv/protobuf-build#67
Vendor generated looks like a step backward. If you do want to decouple with a PROTOC from the user side, it should be the default manner instead of a feature flag. That is, we always generated, ship the generated, and check the generated updated with CI. |
We need a feature flag if we want to do this in Current design is:
|
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
cc @tisonkun, would you like to take a review again? |
@Xuanwo Perhaps you can ping @andylokandy for a review. Or before we call any release, I can merge it now. |
Thanks! |
tonic_build::configure() | ||
.disable_doctests_for_types([".google.api.HttpRule"]) | ||
.emit_rerun_if_changed(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, it's interesting to know why the auto rerun is disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, it's interesting to know why the auto rerun is disabled.
After this change, we are running codegen in a new bin instead of build.rs
, the rerun
hint for cargo is not working anymore. Instead, they just print to the console.
Close #410