GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing protobuf.dev — Cross-Version Runtime Guarantee Cross-Version Runtime GuaranteeThe guarantees that the language has for cross-version runtime compatibility. Protobuf language bindings have two components. The generated code (gencode) and the runtime libraries that implement common functionality for that generated code. When these come from different releases of protobuf, we are in a “cross version runtime” situation. We intend to offer the following guarantees across most languages. These are the default guarantees; however, owners of protobuf code generators and runtimes may explicitly override them with more specific guarantees for that language. C++ and Rust have stricter guarantees than typical, and Python has looser ones. Protobuf cross-version usages outside the guarantees are error-prone and not supported. Version skews can lead to flakes and undefined behaviors that are hard to diagnose, even if it can often seem to work as long as nothing has changed in a source-incompatible way. For Protobuf, the proliferation of tools and services that rely on using unsupported Protobuf language bindings prevents the protobuf team from updating the protobuf implementation in response to bug reports or security vulnerabilities. New Gencode + Old Runtime = Never AllowedWe may add new runtime APIs in any kind of release (Major, Minor, or Patch).
Gencode in that release is allowed to use those new APIs. The consequence is
that gencode should never be paired with a runtime that predates the We will add “poison pills” where possible to prevent attempts to pair newer gencode with an older runtime. Major VersionsProtobuf implements sliding window compatibility for major versions. Code generated for a major version V (full version: V.x.y) will be supported by protobuf runtimes of major version V and V+1. Protobuf will not support using gencode from version V with runtime >= V+2 and will be using a “poison pill” mechanism to fail with a clear error message when a software assembly attempts to use such a configuration. For Example:
Exceptions may be made in case where compatibility with older gencode cannot be maintained, such as in the case of security fixes requiring updated gencode. Note: Poison pills were introduced in the protobuf 26.0 release. Java gencode older than 4.26.0 may appear to work with runtimes that are older than the gencode. However, the combination of newer gencode and older runtime may have serious bugs that do not manifest until runtime. Note: C++ and Rust do not support compatibility windows, and Python supports much longer ones. Minor VersionsWithin a single major runtime version, generated code from an older version of
Note: C++ and Rust do not support compatibility across minor versions. Security ExceptionWe reserve the right to violate the above promises if needed for security reasons. We expect these exceptions to be rare, but will always prioritize security above these guarantees. For example, the footmitten CVE required paired updates to both the runtime and the generated code for Java. As a result, code generated by 3.20.3 (which contained the footmitten fix) would not load with runtime library 3.21.6 (which predates the footmitten fix), creating the following compatibility matrix:
No Coexistence of Multiple Major Runtime VersionsCoexistence of multiple major versions in the same process is not supported. C++ and Rust-specific GuaranteesProtobuf C++ and Rust disclaim all cross-runtime support and require an exact match between the generated code version and the runtime version at all times. Additionally, Protobuf C++ makes no guarantees about ABI stability across any releases (major, minor, or micro). Python-specific GuaranteesSince the 3.20.0 release, the Protobuf Python generated code became a thin
wrapper around an embedded Python may break generated code compatibility in specific future major version releases, but it will be coupled with poison pill warnings and errors in advance. As of 6.32.0, all generated code since 3.20.0 will be supported until at least 8.x.y. | |||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||