Skip to content

Commit

Permalink
chore: enable 128-column-tables feature for diesel crate (#6857)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrithikesh026 authored Jan 22, 2025
1 parent 199d176 commit eaf450b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
30 changes: 23 additions & 7 deletions .github/workflows/CI-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
runs-on: ${{ matrix.runner }}

env:
# Use `sccache` for caching compilation artifacts
RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"

strategy:
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -131,6 +139,8 @@ jobs:
runs-on: ${{ matrix.runner }}

env:
# Use `sccache` for caching compilation artifacts
RUSTC_WRAPPER: sccache
RUSTFLAGS: "-D warnings"

strategy:
Expand Down Expand Up @@ -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:
Expand All @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion crates/common_enums/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/diesel_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit eaf450b

Please sign in to comment.