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

Please do not turn off default features for url #3589

Closed
hsivonen opened this issue Nov 4, 2024 · 9 comments · Fixed by #3601
Closed

Please do not turn off default features for url #3589

hsivonen opened this issue Nov 4, 2024 · 9 comments · Fixed by #3601
Labels

Comments

@hsivonen
Copy link
Contributor

hsivonen commented Nov 4, 2024

Bug Description

In d76b135 , sqlx-core turned off default features for url even though url didn't have default features at the time. This is disruptive now that url has introduced default features in order to manage catering to both the pre-existing MSRV-sensitive audience and to new no_std audience: servo/rust-url#992

Could you, please, remove default-features = false for url and publish a release?

Minimal Reproduction

rustup default 1.80
cargo new idna-992-repro
cd idna-992-repro/
cargo add sqlx
cargo check

Info

  • SQLx version: 0.8.2
  • SQLx features enabled: Default
  • Database server and version: Not applicable.
  • Operating system: Any
  • rustc --version: 1.80.1
@hsivonen
Copy link
Contributor Author

hsivonen commented Nov 5, 2024

It appears that sqlx-core isn't the only SQLx crate with this problem but sqlx-macros-core has the same thing.

@qrilka
Copy link

qrilka commented Nov 7, 2024

This issue broke our CI :(

@abonander
Copy link
Collaborator

To fix, SQLx should upgrade the url dep to 2.5.2 and enable the std feature.

@hsivonen
Copy link
Contributor Author

To fix, SQLx should upgrade the url dep to 2.5.2 and enable the std feature.

The std feature was introduced in 2.5.3.

@dertin
Copy link

dertin commented Nov 12, 2024

This issue also broke our CI, and we had to do the following:

image: rust:1.80.1

Change this:

- cargo install sqlx-cli --no-default-features --features native-tls,mysql

To:

- git clone --branch v0.8.2 https://github.com/launchbadge/sqlx.git
- cd sqlx/sqlx-cli
- sed -i 's|url = { version = "2.2.2", default-features = false }|url = { version = "=2.5.2" }|' Cargo.toml
# (branch master) - sed -i '/^\[dependencies\]/a\url = "=2.5.2"' Cargo.toml 
- cargo install --path . --features native-tls,mysql
- cd .. && rm -rf sqlx
- cd .. && cargo sqlx --version

How does this look?

@hsivonen
Copy link
Contributor Author

How does this look?

This issue asks enabling updates to url 2.5.3 on Rust < 1.81 when SQLx is also used. Your sed expression pins url 2.5.2, so it's not really a solution that would enable 2.5.3.

@dertin
Copy link

dertin commented Nov 13, 2024

How does this look?

This issue asks enabling updates to url 2.5.3 on Rust < 1.81 when SQLx is also used. Your sed expression pins url 2.5.2, so it's not really a solution that would enable 2.5.3.

You're correct; I should have mentioned it's just a workaround.

@Kmshanley
Copy link

Hitting this issue as well

@N-T-K
Copy link

N-T-K commented Nov 23, 2024

Hitting this issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants