From 71f72e2620a7e7b628f8abe0a07978ad155357d9 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Thu, 22 Aug 2024 15:01:20 -0700 Subject: [PATCH] fix(mysql): add `sqlx` as a dev-dependency for doctests --- .github/workflows/sqlx.yml | 2 ++ Cargo.lock | 1 + sqlx-mysql/Cargo.toml | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/sqlx.yml b/.github/workflows/sqlx.yml index a7d93f5e..599b90c3 100644 --- a/.github/workflows/sqlx.yml +++ b/.github/workflows/sqlx.yml @@ -103,10 +103,12 @@ jobs: -p sqlx-macros-core --all-features + # Note: use `--lib` to not run integration tests that require a DB - name: Test sqlx run: > cargo test -p sqlx + --lib --all-features sqlite: diff --git a/Cargo.lock b/Cargo.lock index 3f711abe..1a437b05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3639,6 +3639,7 @@ dependencies = [ "sha1", "sha2", "smallvec", + "sqlx", "sqlx-core", "stringprep", "thiserror", diff --git a/sqlx-mysql/Cargo.toml b/sqlx-mysql/Cargo.toml index 493562c7..a904bc0e 100644 --- a/sqlx-mysql/Cargo.toml +++ b/sqlx-mysql/Cargo.toml @@ -72,5 +72,8 @@ whoami = { version = "1.2.1", default-features = false } serde = { version = "1.0.144", optional = true } +[dev-dependencies] +sqlx = { workspace = true, features = ["mysql"] } + [lints] workspace = true