Skip to content

Commit 8a17bef

Browse files
authored
Remove deprecated feature-names from Cargo.toml files in examples (#3424)
1 parent 1d8eb2a commit 8a17bef

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

examples/mysql/todos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ workspace = "../../../"
77
[dependencies]
88
anyhow = "1.0"
99
futures = "0.3"
10-
sqlx = { path = "../../../", features = [ "mysql", "runtime-tokio-native-tls" ] }
10+
sqlx = { path = "../../../", features = [ "mysql", "runtime-tokio", "tls-native-tls" ] }
1111
clap = { version = "4", features = ["derive"] }
1212
tokio = { version = "1.20.0", features = ["rt", "macros"]}

examples/postgres/axum-social-with-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[dependencies]
99
# Primary crates
1010
axum = { version = "0.5.13", features = ["macros"] }
11-
sqlx = { path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] }
11+
sqlx = { path = "../../../", features = [ "runtime-tokio", "tls-rustls-ring", "postgres", "time", "uuid" ] }
1212
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
1313

1414
# Important secondary crates

examples/postgres/chat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
workspace = "../../../"
66

77
[dependencies]
8-
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio-native-tls" ] }
8+
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
99
futures = "0.3.1"
1010
tokio = { version = "1.20.0", features = [ "rt-multi-thread", "macros" ] }
1111
ratatui = "0.27.0"

examples/postgres/files/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
anyhow = "1.0"
10-
sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] }
10+
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
1111
tokio = { version = "1.20.0", features = ["rt", "macros"]}
1212
dotenvy = "0.15.0"

examples/postgres/json/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ dotenvy = "0.15.0"
1010
futures = "0.3"
1111
serde = { version = "1", features = ["derive"] }
1212
serde_json = "1"
13-
sqlx = { path = "../../../", features = ["runtime-tokio", "postgres", "json"] }
13+
sqlx = { path = "../../../", features = [ "runtime-tokio", "postgres", "json" ] }
1414
clap = { version = "4", features = ["derive"] }
1515
tokio = { version = "1.20.0", features = ["rt", "macros"]}

examples/postgres/mockable-todos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ workspace = "../../../"
77
[dependencies]
88
anyhow = "1.0"
99
futures = "0.3"
10-
sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] }
10+
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
1111
clap = { version = "4", features = ["derive"] }
1212
tokio = { version = "1.20.0", features = ["rt", "macros"]}
1313
dotenvy = "0.15.0"

examples/postgres/todos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ workspace = "../../../"
77
[dependencies]
88
anyhow = "1.0"
99
futures = "0.3"
10-
sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] }
10+
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
1111
clap = { version = "4", features = ["derive"] }
1212
tokio = { version = "1.20.0", features = ["rt", "macros"]}
1313
dotenvy = "0.15.0"

examples/postgres/transaction/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ edition = "2021"
55
workspace = "../../../"
66

77
[dependencies]
8-
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio-native-tls" ] }
8+
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
99
futures = "0.3.1"
1010
tokio = { version = "1.20.0", features = ["rt-multi-thread", "macros"]}

examples/sqlite/todos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ workspace = "../../../"
77
[dependencies]
88
anyhow = "1.0"
99
futures = "0.3"
10-
sqlx = { path = "../../../", features = ["sqlite", "runtime-tokio-native-tls"] }
10+
sqlx = { path = "../../../", features = [ "sqlite", "runtime-tokio", "tls-native-tls" ] }
1111
clap = { version = "4", features = ["derive"] }
1212
tokio = { version = "1.20.0", features = ["rt", "macros"]}

0 commit comments

Comments
 (0)