From 4f6878ec85dca100b2b967d4bdb945e945335e0d Mon Sep 17 00:00:00 2001 From: valued mammal Date: Wed, 31 Dec 2025 15:12:46 -0500 Subject: [PATCH 1/3] ci: Update `rust.yml` --- .github/workflows/rust.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 67f0acf..106cf14 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,7 +12,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + - name: Check features + run: | + cargo check --no-default-features + cargo check --no-default-features --features wallet - name: Build run: cargo build - name: Test - run: cargo test + run: cargo test --no-fail-fast + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Rustfmt + run: cargo fmt --all --check + - name: Lint + run: cargo clippy --all-targets --all-features -- -D warnings From f54ad78b4972c00c14e9c36831daa7a8b07c3bc7 Mon Sep 17 00:00:00 2001 From: valued mammal Date: Wed, 31 Dec 2025 15:33:12 -0500 Subject: [PATCH 2/3] ci,test: Add strategy.matrix.toolchain Run test job on rust stable and 1.85.0 (MSRV). test and lint jobs now use `actions-rust-lang/setup-rust-toolchain`. --- .github/workflows/rust.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 106cf14..1f1b7c5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,9 +9,21 @@ env: jobs: test: + name: Test runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - 1.85.0 # MSRV + - stable steps: - - uses: actions/checkout@v6 + - name: Checkout + uses: actions/checkout@v6 + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + cache: true - name: Check features run: | cargo check --no-default-features @@ -22,9 +34,16 @@ jobs: run: cargo test --no-fail-fast lint: + name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - name: Checkout + uses: actions/checkout@v6 + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + cache: true - name: Rustfmt run: cargo fmt --all --check - name: Lint From f2a808d4fd7c6994f99b20202b97f1b7a1ed034b Mon Sep 17 00:00:00 2001 From: valued mammal Date: Wed, 31 Dec 2025 15:41:32 -0500 Subject: [PATCH 3/3] feat: Make `Store::migrate` pub --- src/async_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async_store.rs b/src/async_store.rs index 057ef46..9f02ef6 100644 --- a/src/async_store.rs +++ b/src/async_store.rs @@ -53,8 +53,8 @@ impl Store { Ok(store) } - /// Migrate. - pub(crate) async fn migrate(&self) -> Result<(), Error> { + /// Runs pending migrations against the database. + pub async fn migrate(&self) -> Result<(), Error> { Ok(sqlx::migrate!().run(&self.pool).await?) } }