-
Notifications
You must be signed in to change notification settings - Fork 345
Cannot compile url 2.5.4 with rustc 1.80.1 #1032
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
Comments
Could you downgrade your unicode-org/icu4x#6192 (comment) has ICU4X's position on MSRV bumps. I don't think rust-url needs a different position here: Do not rely on dependencies not making MSRV changes within the same version stream, rust-url's guarantee is that there is some combination of published crates that is compatible with it on its MSRV. rust-url isn't planning on guaranteeing that all versions in a dependency's major version stream stick to the MSRV: that's just not possible. The new Cargo resolver also makes this problem moot. It's probably not available yet on your MSRV, but it means that if you need to pin things in your lockfile it'll only be temporary. |
Basically, in this PR: Azure/azure-sdk-for-rust#2294, just don't bump these dependencies. It is not a norm followed by the ecosystem that minor version bumps keep MSRV the same; if you care about MSRV then (ICU4X in particular just doesn't run |
I came to the same conclusion (before I saw this) and was just trying that now. :) What's odd is that our CI builds are passing - I just kicked off a manual run, but the PR builds are failing almost as if they aren't using the Still, IDNA pulls in a lot of dependencies that I don't think we need1. It could benefit our customers' build times. Footnotes
|
I'm rather reluctant to make idna optional, disabling idna is a really easy way to get security issues since it affects how URL identity works. (there are probably ways to make it such that "disable idna" leads to behavior that is more errorful instead of causing security issues, but it would need to be thought through quite thoroughly, looking at actual use cases. I don't think it's a trivial project) |
Did you notice the link in the
I think the results of the "Turning off IDNA support" section of the above link are as good as they can logically be:
|
Thanks. I didn't notice it in the way it more or less provides what I asked for. I didn't consider checking dependencies' READMEs. Seems odd taking a precise dependency on a particular version, but with a comment in our workspace's dependency I could hopefully mitigate future maintainers from updating it incidentally. |
While this seems similar to #992, the resolution wouldn't be. We link to
url
v2.5.4 directly and if we turn off thedefault
feature, we lose URL encoding. We probably don't need IDNA but I can't turn that off because it's not it's own feature.What's actually breaking for us is litemap v0.7.4 and zerofrom v0.1.5:
We're not ready to bump our MSRV yet - not for dependencies we likely don't need. Would it be possible to declare a separate feature so we can use
default-features = false, features = ["percent-encoded","form-urlencoded"]
?Some files of note:
The text was updated successfully, but these errors were encountered: