Upgrading tonic-build 0.11 to 0.12
Breaking0.11.0 → 0.12.3Breaking7Deprecated1New11Changed12Fixed9
BreakingUpgrade verdict
7 breaking changes.
In plain terms
- The Cargo feature for native TLS roots has a new name.
- The method that converts routes into an axum router has a new name.
- TLS roots are no longer configured implicitly, so callers must set them up explicitly.
- The library now uses a newer major version of its underlying HTTP library, so code that depends on the old version may need changes.
Must act Top 4 of 8 that need code or config changes
What you must change
Breaking7
Renames the tls-roots feature to tls-native-roots.
tls-rootstls-native-rootsRenames Routes::into_router to into_axum_router.
Routes::into_routerRoutes::into_axum_routerRemoves implicit TLS roots configuration.
Updates tonic and crates to hyper 1.0.
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.
Deprecations to plan for
Deprecated1
Adds #[deprecated] attributes to deprecated client methods in generated code.
#[deprecated]