-
Notifications
You must be signed in to change notification settings - Fork 946
Deprecate cURL #1660
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
Deprecate cURL #1660
Conversation
I don't think |
@dwijnand Does this mean we should have the user compile themselves with the |
No, no compilation necessary, as the rustup binary crate depends on both backends/features: |
How would a user enable one backend over the other without some kind of environment variable? I think I'm missing something here. |
Ah, I see the confusion. I meant we should introduce |
f043963
to
b5bb7f1
Compare
@dwijnand Removed the deprecation warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, though I'd prefer the odd bogon of a diff hunk was fixed.
3f849a1
to
e718fb8
Compare
@kinnison Weird delta removed from commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the Hyper thing
cURL was deprecated in Rustup since 2019 (rust-lang/rustup#1660)
Hi there, hello. How safe would it be to drop Curl from dependencies, when building packages for different distros? By glancing at big distros and OSes at Repology, I found out only OpenSUSE and FreeBSD compile Rustup without Curl, and I'm currently thinking about dropping that dependency in Nixpkgs (the relevant PR is linked above) |
@acid-bong Hello, and thanks for your interest! As clarified in #4296, we will be dropping the cURL backend soon anyway, so I don't think it'll be extremely helpful to keep supporting it: we are currently keeping it just in case someone has a very particular system environment, and starting from the next release we'll be issuing a warning for them to report to our issue tracker. PS: We have shipped since v1.28.0 UA-based tracking for backend usages, but I might need to refer to @rust-lang/infra for the real proportion of users using the cURL backend... Hopefully it'll be reasonably small. |
@decathorpe would be curious to hear your feedback/thoughts! And maybe @sylvestre? |
I see no problems with dropping the cURL backend in favor of reqwest. The Fedora package will most likely just follow the rustup upstream preference here, if that's why you tagged me :) |
I think we (in Debian) will be fine :) |
Sounds good! Are you defaulting rustup to native-tls over rustls today? |
No, the only feature flag we pass for our build is to enable |
Part of the simplification project: #1611
Deprecates cURL in favor of reqwest.
This is the preliminary step for the complete disuse of cURL by rustup; on-going discussion: #1657
cc's from previous PR:
@dwijnand
@brson
@briansmith
@jnicholls
@seanmonstar