为什么gRPC从v1.49.0开始要求protobuf从3.5.0升级到4.21.3

问题描述 投票:0回答:1

我发现自 v1.49.0 以来,所需的 protobuf 版本已从 3.5.0 升至 4.21.3:

https://github.com/grpc/grpc/blob/v1.49.0-pre1/requirements.txt

# GRPC Python setup requirements
coverage>=4.0
cython>=0.29.8
protobuf>=4.21.3,<5.0dev
six>=1.10
wheel>=0.29

请问gRPC需要4.21.3中protobuf的哪些新特性?

谢谢。

BR/琥珀色

我们想评估一下protobuf升级是否是必须要做的。

BR/琥珀色

protocol-buffers grpc
1个回答
0
投票

一般来说,由 Protobuf 代码生成器版本生成的代码需要相同或更新的 Protobuf 运行时,并且在 gRPC 内部生成了原型。

© www.soinside.com 2019 - 2024. All rights reserved.