From 8a17bef7d76b2e885dc8f8c43d30568b79ac7345 Mon Sep 17 00:00:00 2001 From: carschandler <92899389+carschandler@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:03:45 -0500 Subject: [PATCH] Remove deprecated feature-names from `Cargo.toml` files in examples (#3424) --- examples/mysql/todos/Cargo.toml | 2 +- examples/postgres/axum-social-with-tests/Cargo.toml | 2 +- examples/postgres/chat/Cargo.toml | 2 +- examples/postgres/files/Cargo.toml | 2 +- examples/postgres/json/Cargo.toml | 2 +- examples/postgres/mockable-todos/Cargo.toml | 2 +- examples/postgres/todos/Cargo.toml | 2 +- examples/postgres/transaction/Cargo.toml | 2 +- examples/sqlite/todos/Cargo.toml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/mysql/todos/Cargo.toml b/examples/mysql/todos/Cargo.toml index 2ba1c81f..cb0b59a6 100644 --- a/examples/mysql/todos/Cargo.toml +++ b/examples/mysql/todos/Cargo.toml @@ -7,6 +7,6 @@ workspace = "../../../" [dependencies] anyhow = "1.0" futures = "0.3" -sqlx = { path = "../../../", features = [ "mysql", "runtime-tokio-native-tls" ] } +sqlx = { path = "../../../", features = [ "mysql", "runtime-tokio", "tls-native-tls" ] } clap = { version = "4", features = ["derive"] } tokio = { version = "1.20.0", features = ["rt", "macros"]} diff --git a/examples/postgres/axum-social-with-tests/Cargo.toml b/examples/postgres/axum-social-with-tests/Cargo.toml index d03730bd..111b6eca 100644 --- a/examples/postgres/axum-social-with-tests/Cargo.toml +++ b/examples/postgres/axum-social-with-tests/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] # Primary crates axum = { version = "0.5.13", features = ["macros"] } -sqlx = { path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] } +sqlx = { path = "../../../", features = [ "runtime-tokio", "tls-rustls-ring", "postgres", "time", "uuid" ] } tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] } # Important secondary crates diff --git a/examples/postgres/chat/Cargo.toml b/examples/postgres/chat/Cargo.toml index f1749bcf..cdeebcb6 100644 --- a/examples/postgres/chat/Cargo.toml +++ b/examples/postgres/chat/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" workspace = "../../../" [dependencies] -sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio-native-tls" ] } +sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] } futures = "0.3.1" tokio = { version = "1.20.0", features = [ "rt-multi-thread", "macros" ] } ratatui = "0.27.0" diff --git a/examples/postgres/files/Cargo.toml b/examples/postgres/files/Cargo.toml index bfc99487..5b9ac6bd 100644 --- a/examples/postgres/files/Cargo.toml +++ b/examples/postgres/files/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" [dependencies] anyhow = "1.0" -sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] } +sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] } tokio = { version = "1.20.0", features = ["rt", "macros"]} dotenvy = "0.15.0" diff --git a/examples/postgres/json/Cargo.toml b/examples/postgres/json/Cargo.toml index 60441498..5ddccede 100644 --- a/examples/postgres/json/Cargo.toml +++ b/examples/postgres/json/Cargo.toml @@ -10,6 +10,6 @@ dotenvy = "0.15.0" futures = "0.3" serde = { version = "1", features = ["derive"] } serde_json = "1" -sqlx = { path = "../../../", features = ["runtime-tokio", "postgres", "json"] } +sqlx = { path = "../../../", features = [ "runtime-tokio", "postgres", "json" ] } clap = { version = "4", features = ["derive"] } tokio = { version = "1.20.0", features = ["rt", "macros"]} diff --git a/examples/postgres/mockable-todos/Cargo.toml b/examples/postgres/mockable-todos/Cargo.toml index 6634e401..5d99ab90 100644 --- a/examples/postgres/mockable-todos/Cargo.toml +++ b/examples/postgres/mockable-todos/Cargo.toml @@ -7,7 +7,7 @@ workspace = "../../../" [dependencies] anyhow = "1.0" futures = "0.3" -sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] } +sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] } clap = { version = "4", features = ["derive"] } tokio = { version = "1.20.0", features = ["rt", "macros"]} dotenvy = "0.15.0" diff --git a/examples/postgres/todos/Cargo.toml b/examples/postgres/todos/Cargo.toml index ac3ee854..76a57b32 100644 --- a/examples/postgres/todos/Cargo.toml +++ b/examples/postgres/todos/Cargo.toml @@ -7,7 +7,7 @@ workspace = "../../../" [dependencies] anyhow = "1.0" futures = "0.3" -sqlx = { path = "../../../", features = ["postgres", "runtime-tokio-native-tls"] } +sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] } clap = { version = "4", features = ["derive"] } tokio = { version = "1.20.0", features = ["rt", "macros"]} dotenvy = "0.15.0" diff --git a/examples/postgres/transaction/Cargo.toml b/examples/postgres/transaction/Cargo.toml index 80ff9956..be91cb7e 100644 --- a/examples/postgres/transaction/Cargo.toml +++ b/examples/postgres/transaction/Cargo.toml @@ -5,6 +5,6 @@ edition = "2021" workspace = "../../../" [dependencies] -sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio-native-tls" ] } +sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] } futures = "0.3.1" tokio = { version = "1.20.0", features = ["rt-multi-thread", "macros"]} diff --git a/examples/sqlite/todos/Cargo.toml b/examples/sqlite/todos/Cargo.toml index 1c6cfb7d..edc6831a 100644 --- a/examples/sqlite/todos/Cargo.toml +++ b/examples/sqlite/todos/Cargo.toml @@ -7,6 +7,6 @@ workspace = "../../../" [dependencies] anyhow = "1.0" futures = "0.3" -sqlx = { path = "../../../", features = ["sqlite", "runtime-tokio-native-tls"] } +sqlx = { path = "../../../", features = [ "sqlite", "runtime-tokio", "tls-native-tls" ] } clap = { version = "4", features = ["derive"] } tokio = { version = "1.20.0", features = ["rt", "macros"]}