From eb93ff885dea1d66f7c80867665043d69b646273 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Wed, 11 Oct 2023 16:34:00 +0200 Subject: [PATCH] Add diesel also as dev-dependency to fix the doc test error on CI This also enables the "bundled" feature for libsqlite to not care about getting libsqlite3 setup everywhere --- .github/workflows/rust.yml | 2 +- Cargo.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4136ba4..3194c95 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -64,7 +64,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run doc tests run: | - cargo test --all-features --doc + cargo test --all-features --doc test-integration: needs: check diff --git a/Cargo.toml b/Cargo.toml index 636a69f..e7bb056 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,6 +63,8 @@ hyper = "0.14.27" tower = "0.4.13" tokio = { version = "1.32.0", features = ["full"] } tokio-test = "0.4.3" +diesel = {default-features = false, version = "2.1", features = ["sqlite"] } +libsqlite3-sys = { version = "0.26", features = ["bundled"] } [package.metadata.docs.rs] all-features = true