tower-rs / tower-http

HTTP specific Tower utilities.
675 stars 156 forks source link

Make http-body and http-body-util dependencies optional #477

Closed tottoto closed 5 months ago

tottoto commented 5 months ago

Motivation

Some features do not seem to use http-body crate, and some of them also not using http-body-util crate as the dependencies.

Solution

Makes http-body and http-body-util dependencies optional.

This is a breaking change as this disables body module conditionally,

jplatte commented 5 months ago

Thanks for the PR! Can you add a # Unreleased section to tower-http/CHANGELOG.md and describe the changes (esp. the breaking one) there?

tottoto commented 5 months ago

Added the changelog.