Upgrading tonic 0.11 to 0.12
Breaking0.11.0 → 0.12.3Breaking5Security1Deprecated1New11Changed14Fixed9
BreakingUpgrade verdict
5 breaking changes and a security fix.
In plain terms
- TLS no longer automatically configures trusted root certificates, so you must set them up yourself.
- The library now uses a newer major version of its underlying HTTP library, so code built against the old version may need changes.
- The protobuf code generation dependency moves to a new major version, which can change generated code.
- The reflection server now uses the newly generated v1 protobuf types instead of the old ones.
Must act Top 5 of 7 that need code or config changes
What you must change
Breaking5
Removes implicit TLS roots configuration.
Updates tonic and crates to the hyper 1.0 ecosystem.
Updates tonic and crates to prost 0.13.
Updates tonic_reflection::server to use the generated tonic_reflection::pb::v1 code.
tonic_reflection::servertonic_reflection::pb::v1Makes compression encoding configuration more malleable.
Security1
Remotely exploitable Denial of Service in Tonic
Deprecations to plan for
Deprecated1
Marks deprecated client methods with #[deprecated] in generated code.
#[deprecated]