diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7cd773..394ebaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,6 @@ jobs: profile: minimal override: true + - uses: taiki-e/install-action@cargo-hack - name: Build crate - uses: actions-rs/cargo@v1 - with: - command: build + run: cargo hack --feature-powerset build diff --git a/Cargo.toml b/Cargo.toml index e057b3b..6a32b53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,8 @@ license = "MIT" repository = "https://github.com/diesel-rs/diesel_full_text_search" [dependencies] -diesel = { version = "2.0.0", features = ["postgres"], default-features = false } +diesel = { version = "2.0.0", features = ["postgres_backend"], default-features = false } + +[features] +default = ["with-diesel-postgres"] +with-diesel-postgres = ["diesel/postgres"]