File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ tls-roots-common = ["tls"]
33
33
tls-webpki-roots = [" tls-roots-common" , " webpki-roots" ]
34
34
transport = [
35
35
" axum" ,
36
+ " channel"
37
+ ]
38
+ channel = [
36
39
" h2" ,
37
40
" hyper" ,
38
41
" tokio" ,
Original file line number Diff line number Diff line change 17
17
//! # Feature Flags
18
18
//!
19
19
//! - `transport`: Enables the fully featured, batteries included client and server
20
- //! implementation based on [`hyper`], [`tower`] and [`tokio`]. Enabled by default.
20
+ //! implementation based on [`hyper`], [`tower`] and [`tokio`]. Enabled by default.
21
+ //! - `channel`: Enables just the full featured channel/client portion of the `transport`
22
+ //! feature.
21
23
//! - `codegen`: Enables all the required exports and optional dependencies required
22
24
//! for [`tonic-build`]. Enabled by default.
23
25
//! - `tls`: Enables the `rustls` based TLS options for the `transport` feature. Not
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ mod service;
94
94
mod tls;
95
95
96
96
#[ doc( inline) ]
97
+ #[ cfg( feature = "channel" ) ]
98
+ #[ cfg_attr( docsrs, doc( cfg( feature = "channel" ) ) ) ]
97
99
pub use self :: channel:: { Channel , Endpoint } ;
98
100
pub use self :: error:: Error ;
99
101
#[ doc( inline) ]
You can’t perform that action at this time.
0 commit comments