Skip to content

Commit 0694fd4

Browse files
committed
fix(examples): enable default-features for workspace sqlx
1 parent 52e7754 commit 0694fd4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ sqlx-postgres = { version = "=0.9.0-alpha.1", path = "sqlx-postgres" }
140140
sqlx-sqlite = { version = "=0.9.0-alpha.1", path = "sqlx-sqlite" }
141141

142142
# Facade crate (for reference from sqlx-cli)
143-
sqlx = { version = "=0.9.0-alpha.1", path = ".", default-features = false }
143+
sqlx = { version = "=0.9.0-alpha.1", path = "." }
144144

145145
# Common type integrations shared by multiple driver crates.
146146
# These are optional unless enabled in a workspace crate.

sqlx-cli/Cargo.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ path = "src/bin/cargo-sqlx.rs"
2828
[dependencies]
2929
dotenvy = "0.15.0"
3030
tokio = { version = "1.15.0", features = ["macros", "rt", "rt-multi-thread", "signal"] }
31-
sqlx = { workspace = true, default-features = false, features = [
32-
"runtime-tokio",
33-
"migrate",
34-
"any",
35-
] }
3631
futures = "0.3.19"
3732
clap = { version = "4.3.10", features = ["derive", "env", "wrap_help"] }
3833
clap_complete = { version = "4.3.1", optional = true }
@@ -48,6 +43,15 @@ filetime = "0.2"
4843

4944
backoff = { version = "0.4.0", features = ["futures", "tokio"] }
5045

46+
[dependencies.sqlx]
47+
workspace = true
48+
default-features = false
49+
features = [
50+
"runtime-tokio",
51+
"migrate",
52+
"any",
53+
]
54+
5155
[features]
5256
default = ["postgres", "sqlite", "mysql", "native-tls", "completions", "sqlx-toml"]
5357

0 commit comments

Comments
 (0)