Skip to content

Commit 9be4e24

Browse files
Nick AshleyLucioFranco
andauthored
chore: Update docs to reflect changes to compression feature (#1046)
Co-authored-by: Lucio Franco <[email protected]>
1 parent ec359ba commit 9be4e24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tonic/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
//! - `tls-webpki-roots`: Add the standard trust roots from the `webpki-roots` crate to
3131
//! `rustls`-based gRPC clients. Not enabled by default.
3232
//! - `prost`: Enables the [`prost`] based gRPC [`Codec`] implementation.
33-
//! - `compression`: Enables compressing requests, responses, and streams. Note
34-
//! that you must enable the `compression` feature on both `tonic` and
35-
//! `tonic-build` to use it. Depends on [flate2]. Not enabled by default.
33+
//! - `gzip`: Enables compressing requests, responses, and streams.
34+
//! Depends on [flate2]. Not enabled by default.
35+
//! Replaces the `compression` flag from earlier versions of `tonic` (<= 0.7).
3636
//!
3737
//! # Structure
3838
//!

0 commit comments

Comments
 (0)