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

Upgrade protobuf 3 #584

Closed
dertin opened this issue Aug 10, 2022 · 10 comments
Closed

Upgrade protobuf 3 #584

dertin opened this issue Aug 10, 2022 · 10 comments

Comments

@dertin
Copy link

dertin commented Aug 10, 2022

Protobuf 3 is current stable version. Compared to version 2 it implements:

  • runtime reflection
  • JSON and text format parsing and printing
  • dynamic messages (messages which can be created from .proto file on the fly without code generation)

https://github.com/stepancheg/rust-protobuf/#versions-and-branches

Is this update on the roadmap?

@BusyJay
Copy link
Member

BusyJay commented Aug 10, 2022

No. I'm happy to accept a PR if anyone want to contribute. Just make sure people can still using protobuf 2 via features.

@djc
Copy link

djc commented Feb 13, 2023

@BusyJay curious, why not?

@BusyJay
Copy link
Member

BusyJay commented Feb 13, 2023

We were lack of resource at that time. I will work on this these days if no one wants to give a try.

@djc
Copy link

djc commented Feb 13, 2023

Do you still need to keep protobuf 2 around via features, or will that be changed eventually, too?

@BusyJay
Copy link
Member

BusyJay commented Feb 13, 2023

Yes, I will keep pb 2 via features. Though may enable pb 3 by default.

@BusyJay
Copy link
Member

BusyJay commented Feb 14, 2023

I can see rust-protobuf is not active for the past months. And the README also calls for help for maintenance.

The reason why we stick to rust-protobuf 2 is that it has been on production for quite a long time, it seems a more stable version unless we require the new features.

Also, protobuf team seems to be implementing their own Rust version: protocolbuffers/protobuf@89d6b74.

I would like to receive more feedbacks on this issue.

@djc
Copy link

djc commented Feb 14, 2023

I mostly use tonic/prost at work -- mainly here as a maintainer for opentelemetry-rust which in a number of crates supports both gRPC stacks. Curious if you think it will ever make sense for TiKV to migrate to tonic/prost?

@BusyJay
Copy link
Member

BusyJay commented Feb 15, 2023

No, TiKV may probably stick to grpc-rs. Switching to other protobuf implementation is more likely compared to switching grpc implementation.

@andrewbaxter
Copy link

Looks like this may have been resolved in #615 ?

@BusyJay
Copy link
Member

BusyJay commented Feb 2, 2024

Yes.

@BusyJay BusyJay closed this as completed Feb 2, 2024
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

4 participants