Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

query related to editions

45 views
Skip to first unread message

Deepak Khandelwal

unread,
Oct 29, 2024, 5:13:52 AM10/29/24
to Protocol Buffers
Hi,

Q1) with introduction to editions in protobuf, what would be the nature of changes required in other language (like rust or C) plugins?

Q2) is there any plan in future to deprecate "syntax=proto2/3"with their fixed behaviors, and eventually remove them and only support editions in future?

Br. Deepak 



Em Rauch

unread,
Nov 4, 2024, 12:23:22 PM11/4/24
to Deepak Khandelwal, Protocol Buffers
> Q1) with introduction to editions in protobuf, what would be the nature of changes required in other language (like rust or C) plugins?

We have documentation about implementing Edition 2023 support in plugins: https://protobuf.dev/editions/implementation/

Edition 2023 primarily is a unification of proto2 and proto3 features, so if you have a plugin that can support proto2 and proto3 the nature of the changes is to make sure the conditionals for the corresponding behaviors don't explicitly check for proto2 and proto3 syntax, and instead check semantics.

> Q2) is there any plan in future to deprecate "syntax=proto2/3"with their fixed behaviors, and eventually remove them and only support editions in future?

There is no current plan or timeline, but it naturally is expected to happen at some further future time. More realistically after some number of years, community-owned plugins may drop proto2/3 support before any official support is dropped.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/protobuf/b4bf88d9-170f-4459-b04a-baab5b2cb347n%40googlegroups.com.

Derek Perez

unread,
Nov 5, 2024, 4:13:51 PM11/5/24
to Deepak Khandelwal, Protocol Buffers
From my perspective, proto3/2 will never truly go away in the open source ecosystem. I wrote an article about editions in-depth here: https://buf.build/blog/protobuf-editions-are-here



Reply all
Reply to author
Forward
0 new messages