tonic breaking changes

cargo

21 curated breaking changes across major versions of tonic. Use this as a migration checklist before bumping dependencies.

21
changes
Breaking changes by transition
  • 0.7.2 \u2192 0.8.0breaking

    **build:** `CODEC_PATH` moved from const to fn

  • 0.3.1 \u2192 0.4.0api

    `TryFrom` API has been changed.

  • 0.11.0 \u2192 0.12.0breaking

    `tonic_reflection::server` is updated to use the generated

  • 0.11.0 \u2192 0.12.0breaking

    `tonic` and crates updated to hyper 1.0 (#1670)

  • 0.11.0 \u2192 0.12.0breaking

    Make compression encoding configuration more malleable (#1757)

  • 0.11.0 \u2192 0.12.0breaking

    `tonic` and crates updated to prost 0.13 (#1779)

  • 0.11.0 \u2192 0.12.0removed

    Removed implicit configuration of client TLS roots setup (#1731)

  • 0.10.2 \u2192 0.11.0breaking

    Feature gate server implementation for `tonic-reflection`.

  • 0.10.2 \u2192 0.11.0breaking

    MSRV bumped to `1.70`.

  • 0.10.2 \u2192 0.11.0breaking

    Added `zstd` compression support.

  • 0.10.2 \u2192 0.11.0breaking

    Added connection timeout for `connecto_with_connector_lazy`.

  • 0.10.2 \u2192 0.11.0breaking

    Upgrade rustls to `v0.22`

  • 0.10.2 \u2192 0.11.0removed

    Removed `NamedService` from the `transport` module, please import it via

  • 0.1.0-alpha.5 \u2192 0.1.0-beta.1breaking

    **build:** Build will now generate each service client and server into their own modules.

  • 0.1.0-alpha.5 \u2192 0.1.0-beta.1removed

    **transport:** Remove support for OpenSSL within the transport.

  • 0.1.0-alpha.4 \u2192 0.1.0-alpha.5removed

    **transport:** `Endpoint::channel` was removed in favor of

  • 0.1.0-alpha.3 \u2192 0.1.0-alpha.4renamed

    **transport:** `rustls_client_config` for the server has been renamed to `rustls_server_config`.

  • 0.1.0-beta.1 \u2192 0.1.0breaking

    **codec:** Add new `Decoder/Encoder` traits and use `EncodeBuf/DecodeBuf` over `BytesMut` directly.

  • 0.1.0-beta.1 \u2192 0.1.0removed

    **build:** remove default implementations for server traits.

  • 0.1.0-beta.1 \u2192 0.1.0removed

    removed `interceptor_fn` and `intercep_headers_fn` from `transport` in favor of using `tonic::Interceptor`.

  • 0.1.0-beta.1 \u2192 0.1.0renamed

    Rename `ServiceName` to `NamedService`.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/tonic
tonic breaking changes — Cargo migration guide | DepScope