Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stream cargo feature #2896

Merged
merged 2 commits into from
Jun 23, 2022

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Jun 14, 2022

Removes the stream cargo feature and any usage of Stream, including Body::wrap_stream, impl Stream for Body and accept::from_stream.

A few tests were broken, and some examples. Quite extensive changes were needed to fix some of them, which I wasn't able to do in this PR. As discussed on Discord I left TODO comments on the remaining broken tests, tagged with the PR number (#2896).

This PR partially fixes issue #2855.

@oddgrd oddgrd force-pushed the remove_stream_cargo_feature branch from ab3d025 to f855b2e Compare June 14, 2022 20:59
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking on this issue! (And sorry for not realizing the tests would be annoying to update.) This is pretty close, implementation wise. I left some comments inline about possibly ways to update the tests.

examples/echo.rs Outdated Show resolved Hide resolved
tests/server.rs Outdated Show resolved Hide resolved
src/body/body.rs Show resolved Hide resolved
tests/server.rs Show resolved Hide resolved
tests/server.rs Show resolved Hide resolved
tests/client.rs Outdated Show resolved Hide resolved
tests/client.rs Show resolved Hide resolved
@seanmonstar
Copy link
Member

Alright, we merged the StreamBody PR :D

@oddgrd
Copy link
Contributor Author

oddgrd commented Jun 15, 2022

Awesome, I'll get to work on solving the remaining issues then. :)

remove stream cargo feature and any usage of stream, as it isn't stable and shouldn't be depended on

closes issue hyperium#2855
@oddgrd oddgrd force-pushed the remove_stream_cargo_feature branch from 3fbb3ef to 31a8be1 Compare June 17, 2022 19:41
@seanmonstar seanmonstar marked this pull request as ready for review June 21, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants