Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jlizen
Copy link
Contributor

@jlizen jlizen commented Feb 14, 2025

Hi there!

I'm in the process of trying to get OpenSSL out of my dependency closure, in favor of rustls.

Currently jwks implicitly enables all default features of reqwest, which implicitly enables hyper-tls, openssl-sys, etc.

It would be great if it could have the default features disabled so that the caller can pick which backend to include.

This is technically a potentially breaking change, if both of the following criteria apply:

  • caller is using a HTTPS URI and the implicitly created reqwest client
  • caller does NOT have reqwest in their direct dependencies, or they DO, but have default features disabled and no tls backend enabled

I'd be glad to cut this as a feature flag instead, or as a version bump. Open to suggestions!

@jlizen
Copy link
Contributor Author

jlizen commented Feb 14, 2025

thanks for you attention @chenhunghan ! Glad to discuss further

@chenhunghan
Copy link
Owner

Thank you, I think it's ok to be a minor version since it hasn't been to v1 yet. I will merge and release.

@chenhunghan chenhunghan changed the title set reqwest to default-features = false feat: set reqwest to default-features = false Feb 14, 2025
@chenhunghan chenhunghan merged commit 5bb9254 into chenhunghan:main Feb 14, 2025
@jlizen
Copy link
Contributor Author

jlizen commented Feb 14, 2025

Appreciate it!

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.

2 participants