Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

chore: enable 128-column-tables feature for diesel crate (#6857)

Hrithikesheaf450b91109
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index 369da734da..d01c26d511 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -259,7 +259,7 @@ jobs:
- name: Run clippy
shell: bash
- run: just clippy
+ run: just clippy --jobs 2
- name: Check Cargo.lock changed
if: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index 7bc5599588..e17ce46d85 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -42,6 +42,8 @@ jobs:
runs-on: ${{ matrix.runner }}
env:
+ # Use `sccache` for caching compilation artifacts
+ RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -75,10 +77,16 @@ jobs:
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
-
- - uses: Swatinem/[email protected]
+
+ - name: Install sccache
+ uses: taiki-e/[email protected]
with:
- save-if: ${{ github.event_name == 'push' }}
+ tool: sccache
+ checksum: true
+
+ # - uses: Swatinem/[email protected]
+ # with:
+ # save-if: ${{ github.event_name == 'push' }}
- name: Install cargo-hack
uses: baptiste0928/[email protected]
@@ -131,6 +139,8 @@ jobs:
runs-on: ${{ matrix.runner }}
env:
+ # Use `sccache` for caching compilation artifacts
+ RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"
strategy:
@@ -160,6 +170,12 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Install sccache
+ uses: taiki-e/[email protected]
+ with:
+ tool: sccache
+ checksum: true
+
- name: Install cargo-hack
uses: baptiste0928/[email protected]
with:
@@ -180,13 +196,13 @@ jobs:
# with:
# crate: cargo-nextest
- - uses: Swatinem/[email protected]
- with:
- save-if: ${{ github.event_name == 'push' }}
+ # - uses: Swatinem/[email protected]
+ # with:
+ # save-if: ${{ github.event_name == 'push' }}
- name: Run clippy
shell: bash
- run: just clippy
+ run: just clippy --jobs 2
- name: Cargo hack
if: ${{ github.event_name == 'push' }}
diff --git a/crates/common_enums/Cargo.toml b/crates/common_enums/Cargo.toml
index 92fc2f0206..5db5393644 100644
--- a/crates/common_enums/Cargo.toml
+++ b/crates/common_enums/Cargo.toml
@@ -13,7 +13,7 @@ openapi = []
payouts = []
[dependencies]
-diesel = { version = "2.2.3", features = ["postgres"] }
+diesel = { version = "2.2.3", features = ["postgres", "128-column-tables"] }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
strum = { version = "0.26", features = ["derive"] }
diff --git a/crates/diesel_models/Cargo.toml b/crates/diesel_models/Cargo.toml
index 5da67eb307..4f02cc4aea 100644
--- a/crates/diesel_models/Cargo.toml
+++ b/crates/diesel_models/Cargo.toml
@@ -17,7 +17,7 @@ payment_methods_v2 = []
[dependencies]
async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
-diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time", "64-column-tables"] }
+diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time", "128-column-tables"] }
error-stack = "0.4.1"
rustc-hash = "1.1.0"
serde = { version = "1.0.197", features = ["derive"] }