开发者

Are protobuf messages compatible across versions of protobuf

开发者 https://www.devze.com 2023-02-10 07:33 出处:网络
I started building an app with protobuf 2.2.0 as it was the latest. Now I\'m considering upgrading to pro开发者_如何学Ctobuf 2.4.0a which is the latest.

I started building an app with protobuf 2.2.0 as it was the latest. Now I'm considering upgrading to pro开发者_如何学Ctobuf 2.4.0a which is the latest. If I do so will the messages generated by one version of the app still be readable by the other version for the same schema? Or would I be breaking something?


That should be fine. Version 2.1.0 introduced packed repeated fields, but I don't believe there have been any wire format changes since then.

0

精彩评论

暂无评论...
验证码 换一张
取 消