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

Not possible to avoid native-tls feature of reqwest #2

Closed
silwol opened this issue May 9, 2023 · 1 comment · Fixed by #3
Closed

Not possible to avoid native-tls feature of reqwest #2

silwol opened this issue May 9, 2023 · 1 comment · Fixed by #3

Comments

@silwol
Copy link
Contributor

silwol commented May 9, 2023

I would like to add reqwest_dav as a dependency to my project. I want to use the rustls-tls feature of reqwest, and not have native-tls (which pulls in openssl as a dependency) in the build tree at all.

Adding default-features = false to the reqwest dependency could help here, it would allow users of reqwest_dav to add their own dependency on reqwest and set the features as preferred.

As a bonus, passing through the rustls-tls and native-tls features would facilitate selection of these, possibly mirroring the behavior of reqwest so that users who don't care at all have no extra work to do.

@niuhuan
Copy link
Owner

niuhuan commented May 9, 2023

I'm sorry that these codes only complete basic functions.

These things may be useful to you

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 a pull request may close this issue.

2 participants