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

Prepare 0.12 release #2188

Merged
merged 8 commits into from
Mar 20, 2024
Merged

Prepare 0.12 release #2188

merged 8 commits into from
Mar 20, 2024

Conversation

seanmonstar
Copy link
Owner

No description provided.

This is a big and breaking change. A lot of the internals were worked
on. But the breakage shouldn't be that visible to public API.

The main differences are:

- Publicly exposes `http` v1, instead of v0.2.
- Integration with `hyper::Body` has changed.

Co-authored-by: =?UTF-8?q?Lo=C3=AFs=20Postula?= <[email protected]>
Co-authored-by: Jakub Wieczorek <[email protected]>
@seanmonstar seanmonstar added this to the 0.12 milestone Mar 19, 2024
@seanmonstar seanmonstar force-pushed the 0.12-dev branch 2 times, most recently from 87cd4c5 to 8d11890 Compare March 20, 2024 15:26
yujincheng08 and others added 5 commits March 20, 2024 11:29
Technically a breaking change, since disabling default options will mean HTTP/2 is no longer enabled, and in 0.11.x, it was.
In `Cargo.toml`, hide all optional dependencies as features

Currently, reqwest publishes all optional dependencies as features - which is usually not what is intended. Instead, the features should be explicitly declared, whereas optional features are enabled with the new `dep:*` syntax.

Note that I also had to fix a few conditional compilations which used optional crates rather than features as conditionals.

Also, note the use of the `...?/...` syntax instead of `.../...` -- as this both enabled an optional crate AND adds a feature to it.  Now, it uses the `"dep:...", "...?/..."` syntax to prevent exposing crate name.

Technically, this is *breaking change*, since people may have enabled some of these features accidentally. That's why we're including it in 0.12.
@seanmonstar seanmonstar merged commit 92aa28c into master Mar 20, 2024
33 checks passed
@seanmonstar seanmonstar deleted the 0.12-dev branch March 20, 2024 15:51
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.

6 participants