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

Enable http-crate feature while building docs #755

Merged
merged 1 commit into from
May 28, 2024

Conversation

MarijnS95
Copy link
Contributor

ureq properly adheres to the additive-only-ness of crate feature flags, allowing interop with the http 0.2 and http 1.x crates concurrently. We should take advantage of this in the docs as well, by generating entries for http 1.x impls (with appropriate autogenerated Available on create feature http-crate only markers) to make users aware of the bindings they have available.

Also clean up the http 1 integration a bit following the breaking changes that I proposed (for http 0.2) a long time ago, which seem to have been copy-pasted to the new http 1 interop.

`ureq` properly adheres to the additive-only-ness of crate feature
flags, allowing interop with the `http 0.2` and `http 1.x` crates
concurrently. We should take advantage of this in the docs as well,
by generating entries for `http 1.x` `impl`s (with appropriate
autogenerated `Available on create feature http-crate only` markers) to
make users aware of the bindings they have available.

Also clean up the `http 1` integration a bit following the breaking
changes that I proposed (for `http 0.2`) a long time ago, which seem to
have been copy-pasted to the new `http 1` interop.
Copy link
Owner

@algesten algesten left a comment

Choose a reason for hiding this comment

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

Thanks!

@algesten algesten merged commit 5ed699d into algesten:main May 28, 2024
50 checks passed
@MarijnS95 MarijnS95 deleted the docsrs-http-crate branch May 28, 2024 19:09
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