You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
url 2.5.3 (and idna 1.0.3) conditionally raising MSRV to 1.81 when default features are off (from no_std support for the url crate #831). Conditionally raising MSRV to 1.81 is not a semver break, because raising MSRV isn't a semver break.
resolver = "2", which is implied by edition = "2021" performing feature resolution for proc macro dependencies separately from normal dependencies, so a normal dependency on url with default features enabled does not cause default features to be enabled for the proc macro case.
Original report follows:
Note that this crate implements the URL Standard not RFC 1738 or RFC 3986
Describe the bug
After update to v1.0.3 wich is picked up automatically since its a patch upgrade, our code no longer compiles the same.
rust versions tested:
rustc 1.80.1
rustc 1.81.0
Compiling idna v1.0.3
error[E0658]: use of unstable library feature 'error_in_core'
--> /home/krille/.cargo/registry/src/index.crates.io-6f17d22bba15001f/idna-1.0.3/src/lib.rs:78:6
|
78 | impl core::error::Error for Errors {}
| ^^^^^^^^^^^^^^^^^^
|
= note: see issue #103765 <https://github.com/rust-lang/rust/issues/103765> for more information
Edited by @hsivonen to put resolution options at the top for folks who come here:
To resolve this compilation error, update SQLx to 0.8.3 and/or update Rust to 1.81 or later.
This compilation error is due to a combination of:
url, and from a proc macro context specifically. (Request for SQLx not to do that: Please do not turn off default features for url launchbadge/sqlx#3589)url2.5.3 (andidna1.0.3) conditionally raising MSRV to 1.81 when default features are off (fromno_stdsupport for theurlcrate #831). Conditionally raising MSRV to 1.81 is not a semver break, because raising MSRV isn't a semver break.resolver = "2", which is implied byedition = "2021"performing feature resolution for proc macro dependencies separately from normal dependencies, so a normal dependency onurlwith default features enabled does not cause default features to be enabled for the proc macro case.Original report follows:
Describe the bug
After update to v1.0.3 wich is picked up automatically since its a patch upgrade, our code no longer compiles the same.
rust versions tested: