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

refactor: replace reqwest with ureq #844

Merged
merged 2 commits into from Jan 19, 2020
Merged

refactor: replace reqwest with ureq #844

merged 2 commits into from Jan 19, 2020

Conversation

davidkna
Copy link
Member

@davidkna davidkna commented Jan 17, 2020

Description

Motivation and Context

reqwest is quite a heavy dependency in terms of file size and pulls in a lot of async related dependencies (tokio) despite starship only using the blocking API.
By replacing reqwest with ureq binary size on windows release builds is reduced by ~30%.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Copy link
Contributor

@jonstodle jonstodle left a comment

Choose a reason for hiding this comment

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

This looks good to me.

* upstream/master:
  build(deps): bump toml from 0.5.5 to 0.5.6
  fix: Fix incorrect prefix usage in cmd_duration module (#832)
  ci: Update CI dependencies (#850)
  docs: Fix indentation and missing modules in README (#847)
@matchai matchai merged commit d869b3a into starship:master Jan 19, 2020
@matchai
Copy link
Member

matchai commented Jan 19, 2020

Thank you for your PR, David! 😊

@q66
Copy link

q66 commented Feb 1, 2020

This breaks starship on any architecture other than x86 and ARM by pulling in ring (via rustls, which is needed for the tls feature) which is assembly-only without portable fallbacks, and doesn't seem to have any plans to change this, or accept additional platform support. It'd be great if you could reconsider this in favor of some other, better solution.

matchai added a commit that referenced this pull request Feb 1, 2020
matchai added a commit that referenced this pull request Feb 1, 2020
matchai added a commit that referenced this pull request Feb 4, 2020
matchai added a commit that referenced this pull request Feb 6, 2020
matchai added a commit that referenced this pull request Feb 6, 2020
dagbrown pushed a commit to dagbrown/starship that referenced this pull request Oct 22, 2021
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

4 participants