Skip to content

Upgrading tonic 0.11 to 0.12

Breaking0.11.0 → 0.12.3Breaking5Security1Deprecated1New11Changed14Fixed9

BreakingUpgrade verdict

5 breaking changes and a security fix.

  • 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.
Top 5 of 7 that need code or config changes
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::v1
Makes compression encoding configuration more malleable.
Security1
Remotely exploitable Denial of Service in Tonic
Deprecated1
Marks deprecated client methods with #[deprecated] in generated code.
#[deprecated]