diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 204b557..0f62af9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,3 +246,12 @@ jobs: # cannot test sqlite yet as that crate # as broken min-version dependencies as well run: cargo +1.84.0 minimal-versions check -p diesel-async --features "postgres bb8 deadpool mobc" + all_features_build: + name: Check all feature combination build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - name: Check feature combinations + run: cargo hack check --feature-powerset --no-dev-deps --depth 2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e87802..7b08a08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/ ## [Unreleased] +## [0.6.1] - 2025-07-03 + +* Fix features for some dependencies + +## [0.6.0] - 2025-07-02 + +* Allow to control the statement cache size +* Minimize dependencies features +* Bump minimal supported mysql_async version to 0.36.0 +* Fixing a bug in how we tracked open transaction that could lead to dangling transactions is specific cases + ## [0.5.2] - 2024-11-26 * Fixed an issue around transaction cancellation that could lead to connection pools containing connections with dangling transactions @@ -87,4 +98,7 @@ in the pool should be checked if they are still valid [0.4.1]: https://github.com/weiznich/diesel_async/compare/v0.4.0...v0.4.1 [0.5.0]: https://github.com/weiznich/diesel_async/compare/v0.4.0...v0.5.0 [0.5.1]: https://github.com/weiznich/diesel_async/compare/v0.5.0...v0.5.1 -[Unreleased]: https://github.com/weiznich/diesel_async/compare/v0.5.1...main +[0.5.2]: https://github.com/weiznich/diesel_async/compare/v0.5.1...v0.5.2 +[0.6.0]: https://github.com/weiznich/diesel_async/compare/v0.5.2...v0.6.0 +[0.6.1]: https://github.com/weiznich/diesel_async/compare/v0.6.0...v0.6.1 +[Unreleased]: https://github.com/weiznich/diesel_async/compare/v0.6.1...main diff --git a/Cargo.toml b/Cargo.toml index 53af237..be4df15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diesel-async" -version = "0.5.2" +version = "0.6.1" authors = ["Georg Semmler "] edition = "2021" autotests = false @@ -78,11 +78,11 @@ mysql = [ postgres = ["diesel/postgres_backend", "tokio-postgres", "tokio", "tokio/rt"] sqlite = ["diesel/sqlite", "sync-connection-wrapper"] sync-connection-wrapper = ["tokio/rt"] -async-connection-wrapper = ["tokio/net"] +async-connection-wrapper = ["tokio/net", "tokio/rt"] pool = [] r2d2 = ["pool", "diesel/r2d2"] -bb8 = ["pool", "dep:bb8", "dep:async-trait"] -mobc = ["pool", "dep:mobc"] +bb8 = ["pool", "dep:bb8"] +mobc = ["pool", "dep:mobc", "dep:async-trait", "tokio/sync"] deadpool = ["pool", "dep:deadpool"] [[test]] diff --git a/examples/postgres/pooled-with-rustls/Cargo.toml b/examples/postgres/pooled-with-rustls/Cargo.toml index 3b879db..a39754f 100644 --- a/examples/postgres/pooled-with-rustls/Cargo.toml +++ b/examples/postgres/pooled-with-rustls/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -diesel-async = { version = "0.5.0", path = "../../../", features = ["bb8", "postgres"] } +diesel-async = { version = "0.6.0", path = "../../../", features = ["bb8", "postgres"] } futures-util = "0.3.21" rustls = "0.23.8" rustls-platform-verifier = "0.5.0" diff --git a/examples/postgres/run-pending-migrations-with-rustls/Cargo.toml b/examples/postgres/run-pending-migrations-with-rustls/Cargo.toml index daef5c0..f9066f3 100644 --- a/examples/postgres/run-pending-migrations-with-rustls/Cargo.toml +++ b/examples/postgres/run-pending-migrations-with-rustls/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -diesel-async = { version = "0.5.0", path = "../../../", features = ["bb8", "postgres", "async-connection-wrapper"] } +diesel-async = { version = "0.6.0", path = "../../../", features = ["bb8", "postgres", "async-connection-wrapper"] } futures-util = "0.3.21" rustls = "0.23.8" rustls-platform-verifier = "0.5.0" diff --git a/examples/sync-wrapper/Cargo.toml b/examples/sync-wrapper/Cargo.toml index c271019..667da14 100644 --- a/examples/sync-wrapper/Cargo.toml +++ b/examples/sync-wrapper/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -diesel-async = { version = "0.5.0", path = "../../", features = ["sync-connection-wrapper", "async-connection-wrapper"] } +diesel-async = { version = "0.6.0", path = "../../", features = ["sync-connection-wrapper", "async-connection-wrapper"] } futures-util = "0.3.21" tokio = { version = "1.2.0", default-features = false, features = ["macros", "rt-multi-thread"] }