From 9be4e2479d816ce8bccf9832de8b8b6d98b4d698 Mon Sep 17 00:00:00 2001 From: Nick Ashley Date: Tue, 2 Aug 2022 16:38:08 +0000 Subject: [PATCH] chore: Update docs to reflect changes to compression feature (#1046) Co-authored-by: Lucio Franco --- tonic/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tonic/src/lib.rs b/tonic/src/lib.rs index 81389d2..69e2bc1 100644 --- a/tonic/src/lib.rs +++ b/tonic/src/lib.rs @@ -30,9 +30,9 @@ //! - `tls-webpki-roots`: Add the standard trust roots from the `webpki-roots` crate to //! `rustls`-based gRPC clients. Not enabled by default. //! - `prost`: Enables the [`prost`] based gRPC [`Codec`] implementation. -//! - `compression`: Enables compressing requests, responses, and streams. Note -//! that you must enable the `compression` feature on both `tonic` and -//! `tonic-build` to use it. Depends on [flate2]. Not enabled by default. +//! - `gzip`: Enables compressing requests, responses, and streams. +//! Depends on [flate2]. Not enabled by default. +//! Replaces the `compression` flag from earlier versions of `tonic` (<= 0.7). //! //! # Structure //!