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

ci: use Rust stable from 2 weeks ago (#2012)

Sanchith Hegdec38485ad2892
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index 61aaf5951f..a51ef804da 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -290,7 +290,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
components: clippy
- name: Install cargo-hack
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index aea0aea656..653905975b 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -131,7 +131,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
components: clippy
- name: Install cargo-hack
diff --git a/.github/workflows/connector-sanity-tests.yml b/.github/workflows/connector-sanity-tests.yml
index 4d6199a86d..40a3c36125 100644
--- a/.github/workflows/connector-sanity-tests.yml
+++ b/.github/workflows/connector-sanity-tests.yml
@@ -84,7 +84,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- uses: Swatinem/[email protected]
diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.yml
index 174287c61c..c02d8a3bfb 100644
--- a/.github/workflows/conventional-commit-check.yml
+++ b/.github/workflows/conventional-commit-check.yml
@@ -43,7 +43,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- uses: baptiste0928/[email protected]
with:
diff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yaml
index 57d1f579da..0c4baaa961 100644
--- a/.github/workflows/migration-check.yaml
+++ b/.github/workflows/migration-check.yaml
@@ -45,7 +45,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- uses: baptiste0928/[email protected]
with:
diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.yml
index c6e0f0f57f..316c989125 100644
--- a/.github/workflows/postman-collection-runner.yml
+++ b/.github/workflows/postman-collection-runner.yml
@@ -77,7 +77,7 @@ jobs:
if: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- name: Build and Cache Rust Dependencies
if: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml
index e42e0dd266..8bd80ee150 100644
--- a/.github/workflows/release-new-version.yml
+++ b/.github/workflows/release-new-version.yml
@@ -32,7 +32,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- name: Install cocogitto
uses: baptiste0928/[email protected]
diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.yml
index 72b76157f1..5c4c28518e 100644
--- a/.github/workflows/validate-openapi-spec.yml
+++ b/.github/workflows/validate-openapi-spec.yml
@@ -33,7 +33,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: stable
+ toolchain: stable 2 weeks ago
- name: Generate the OpenAPI spec file
shell: bash
diff --git a/Cargo.lock b/Cargo.lock
index ce46b6c6e9..1eb250514f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1644,6 +1644,22 @@ dependencies = [
"parking_lot_core",
]
+[[package]]
+name = "data_models"
+version = "0.1.0"
+dependencies = [
+ "api_models",
+ "async-trait",
+ "common_enums",
+ "common_utils",
+ "error-stack",
+ "serde",
+ "serde_json",
+ "strum 0.25.0",
+ "thiserror",
+ "time 0.3.22",
+]
+
[[package]]
name = "deadpool"
version = "0.9.5"
@@ -1824,9 +1840,9 @@ dependencies = [
[[package]]
name = "dyn-clone"
-version = "1.0.11"
+version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30"
+checksum = "bbfc4744c1b8f2a09adc0e55242f60b1af195d88596bd8700be74418c056c555"
[[package]]
name = "either"
@@ -2998,9 +3014,9 @@ dependencies = [
[[package]]
name = "moka"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "206bf83f415b0579fd885fe0804eb828e727636657dc1bf73d80d2f1218e14a1"
+checksum = "fa6e72583bf6830c956235bff0d5afec8cf2952f579ebad18ae7821a917d950f"
dependencies = [
"async-io",
"async-lock",
@@ -3968,7 +3984,7 @@ dependencies = [
"clap",
"common_utils",
"config",
- "crc32fast",
+ "data_models",
"derive_deref",
"diesel",
"diesel_models",
@@ -3988,7 +4004,6 @@ dependencies = [
"maud",
"mimalloc",
"mime",
- "moka",
"nanoid",
"num_cpus",
"once_cell",
@@ -4588,11 +4603,24 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
name = "storage_impl"
version = "0.1.0"
dependencies = [
+ "api_models",
"async-bb8-diesel",
"async-trait",
"bb8",
+ "common_utils",
+ "crc32fast",
+ "data_models",
"diesel",
+ "diesel_models",
+ "dyn-clone",
+ "error-stack",
+ "futures",
"masking",
+ "moka",
+ "once_cell",
+ "redis_interface",
+ "router_env",
+ "tokio",
]
[[package]]
diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.json
index bf95efe64f..7a7bc9d891 100644
--- a/openapi/openapi_spec.json
+++ b/openapi/openapi_spec.json
@@ -10163,11 +10163,6 @@
"format": "int64",
"description": "The total number of refunds in the list"
},
- "total_count": {
- "type": "integer",
- "format": "int64",
- "description": "The total number of refunds in the list"
- },
"data": {
"type": "array",
"items": {