diff --git a/.clippy.toml b/.clippy.toml index 3b9db9df..5e90250c 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1 +1 @@ -msrv = "1.74.0" +msrv = "1.81.0" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2be2fe35..5de9d318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - rustup override set 1.74.0 + rustup override set 1.81.0 rustup component add rustfmt rustup component add clippy rustup component add rust-docs @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: rustup override set 1.74.0 + - run: rustup override set 1.81.0 - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@cargo-make - name: Add hosts entries diff --git a/CHANGELOG.md b/CHANGELOG.md index bbb2ca98..889c3ae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [0.18.0] - 2024-11-22 + +- Bump MSRV to `1.81.0`. +- Expose option for setting ID function (#202) + - Add ID format to `PgStore` + - Allow `PgStoreBuilder` to set ID format + - Support UUID version 7 directly + +--- + ## [0.17.1] - 2024-08-20 ### Updated @@ -351,7 +361,10 @@ Refer to: [#107], [#108] and [#109] -[Unreleased]: https://github.com/primait/event_sourcing.rs/compare/0.17.1...HEAD + + +[Unreleased]: https://github.com/primait/event_sourcing.rs/compare/0.18.0...HEAD +[0.18.0]: https://github.com/primait/event_sourcing.rs/compare/0.17.1...0.18.0 [0.17.1]: https://github.com/primait/event_sourcing.rs/compare/0.17.0...0.17.1 [0.17.0]: https://github.com/primait/event_sourcing.rs/compare/0.16.0...0.17.0 [0.16.0]: https://github.com/primait/event_sourcing.rs/compare/0.15.0...0.16.0 diff --git a/Cargo.toml b/Cargo.toml index 23ba78b7..13f60956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,8 @@ license = "MIT OR Apache-2.0" name = "esrs" readme = "README.md" repository = "https://github.com/primait/event_sourcing.rs" -rust-version = "1.74.0" -version = "0.17.1" +rust-version = "1.81.0" +version = "0.18.0" [package.metadata.docs.rs] all-features = true diff --git a/examples/common/basic/view.rs b/examples/common/basic/view.rs index fcc3bc24..62078edb 100644 --- a/examples/common/basic/view.rs +++ b/examples/common/basic/view.rs @@ -5,7 +5,9 @@ use crate::common::util::random_letters; #[derive(sqlx::FromRow, Debug)] pub struct BasicViewRow { + #[allow(unused)] pub id: Uuid, + #[allow(unused)] pub content: String, } diff --git a/src/store/mod.rs b/src/store/mod.rs index ea9cb785..28331a62 100644 --- a/src/store/mod.rs +++ b/src/store/mod.rs @@ -19,6 +19,7 @@ pub trait UnlockOnDrop: Send + Sync + 'static {} /// Lock guard preventing concurrent access to a resource. /// /// The lock is released when this guard is dropped. +#[allow(dead_code)] pub struct EventStoreLockGuard(Box); impl EventStoreLockGuard {