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 hard dependency on 'ring' #45

Merged
merged 4 commits into from
May 16, 2022
Merged

Conversation

messense
Copy link
Contributor

@messense messense commented May 15, 2022

I want to use xwin in PyO3/maturin#919 but currently xwin has a hard dependency on 'ring', and ring doesn't compile on Linux powerpc64le & s390x architectures, so here are some changes to remove 'ring' as a hard dependency.

  1. Replaced reqwest with ureq and expose TLS dependency options as cargo features. Since xwin uses the blocking http client before and ureq is blocking-IO only this doesn't change much behavior.
  2. Replaced ring with sha2

Copy link
Owner

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Nice, didn't notice any big differences in download speeds with this change and since rustls is still used by default it's up to users if they want to deal with openssl issues. I guess one thing I would change would be to enable the vendored feature of native-tls-crate, but I think that can be done later if someone complains.

@Jake-Shadle Jake-Shadle merged commit 64a4e08 into Jake-Shadle:main May 16, 2022
@messense messense deleted the reduce-deps branch May 16, 2022 06:49
@messense
Copy link
Contributor Author

It'd be great if you can release a new version to crates.io, thanks!

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