diff --git a/sqlx-core/Cargo.toml b/sqlx-core/Cargo.toml index e22c6d4fc..f2c0d58e3 100644 --- a/sqlx-core/Cargo.toml +++ b/sqlx-core/Cargo.toml @@ -106,8 +106,14 @@ hashbrown = "0.16.0" thiserror.workspace = true [dev-dependencies] -sqlx = { workspace = true, features = ["postgres", "sqlite", "mysql", "migrate", "macros", "time", "uuid"] } tokio = { version = "1", features = ["rt"] } +[dev-dependencies.sqlx] +# FIXME: https://github.com/rust-lang/cargo/issues/15622 +# workspace = true +path = ".." +default-features = false +features = ["postgres", "sqlite", "mysql", "migrate", "macros", "time", "uuid"] + [lints] workspace = true diff --git a/sqlx-mysql/Cargo.toml b/sqlx-mysql/Cargo.toml index 2ed0738a2..ee9512b61 100644 --- a/sqlx-mysql/Cargo.toml +++ b/sqlx-mysql/Cargo.toml @@ -73,7 +73,8 @@ thiserror.workspace = true serde = { version = "1.0.144", optional = true } [dev-dependencies] -sqlx = { workspace = true, features = ["mysql"] } +# FIXME: https://github.com/rust-lang/cargo/issues/15622 +sqlx = { path = "..", default-features = false, features = ["mysql"] } [lints] workspace = true diff --git a/sqlx-postgres/Cargo.toml b/sqlx-postgres/Cargo.toml index 4abd25235..ceec9eb64 100644 --- a/sqlx-postgres/Cargo.toml +++ b/sqlx-postgres/Cargo.toml @@ -79,7 +79,9 @@ workspace = true features = ["json"] [dev-dependencies.sqlx] -workspace = true +# FIXME: https://github.com/rust-lang/cargo/issues/15622 +# workspace = true +path = ".." features = ["postgres", "derive"] [target.'cfg(target_os = "windows")'.dependencies] diff --git a/sqlx-sqlite/Cargo.toml b/sqlx-sqlite/Cargo.toml index 6e04f1c2a..4f56c3592 100644 --- a/sqlx-sqlite/Cargo.toml +++ b/sqlx-sqlite/Cargo.toml @@ -94,8 +94,12 @@ regex = { version = "1.5.5", optional = true } [dependencies.sqlx-core] workspace = true -[dev-dependencies] -sqlx = { workspace = true, features = ["macros", "runtime-tokio", "tls-none", "sqlite"] } +[dev-dependencies.sqlx] +# FIXME: https://github.com/rust-lang/cargo/issues/15622 +# workspace = true +path = ".." +default-features = false +features = ["macros", "runtime-tokio", "tls-none", "sqlite"] [lints] workspace = true