chore(server): setup ServerProto pieces to be deprecated
- Adds a `server-proto` feature that is added to default features. - If `server-proto` feature is not enabled, pieces that will eventually be deprecated and optional will be tagged deprecated, but with a note about the missing `server-proto` feature.
This commit is contained in:
		| @@ -47,6 +47,8 @@ impl Stream for Body { | ||||
|     } | ||||
| } | ||||
|  | ||||
| // deprecate soon, but can't really deprecate trait impls | ||||
| #[doc(hidden)] | ||||
| impl From<Body> for tokio_proto::streaming::Body<Chunk, ::Error> { | ||||
|     #[inline] | ||||
|     fn from(b: Body) -> tokio_proto::streaming::Body<Chunk, ::Error> { | ||||
| @@ -54,6 +56,8 @@ impl From<Body> for tokio_proto::streaming::Body<Chunk, ::Error> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| // deprecate soon, but can't really deprecate trait impls | ||||
| #[doc(hidden)] | ||||
| impl From<tokio_proto::streaming::Body<Chunk, ::Error>> for Body { | ||||
|     #[inline] | ||||
|     fn from(tokio_body: tokio_proto::streaming::Body<Chunk, ::Error>) -> Body { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user