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: upgrade msrv to 1.70 (#3938)

ivor-juspay0e600837f77a
diff --git a/.deepsource.toml b/.deepsource.toml
index d3932afd23..640298afbd 100644
--- a/.deepsource.toml
+++ b/.deepsource.toml
@@ -13,4 +13,4 @@ name = "rust"
enabled = true
[analyzers.meta]
-msrv = "1.65.0"
+msrv = "1.70.0"
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index d6b3d98b8c..052afd5d25 100644
--- a/.github/workflows/CI-pr.yml
+++ b/.github/workflows/CI-pr.yml
@@ -114,7 +114,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: 1.65
+ toolchain: "1.70"
- uses: Swatinem/[email protected]
with:
@@ -124,7 +124,6 @@ jobs:
uses: baptiste0928/[email protected]
with:
crate: cargo-hack
- version: 0.6.5
- name: Deny warnings
shell: bash
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index 90b301bbd9..c946513f72 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -61,7 +61,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
- toolchain: 1.65
+ toolchain: "1.70"
- uses: Swatinem/[email protected]
with:
@@ -71,7 +71,6 @@ jobs:
uses: baptiste0928/[email protected]
with:
crate: cargo-hack
- version: 0.6.5
- name: Deny warnings
shell: bash
diff --git a/Cargo.toml b/Cargo.toml
index 21e01cf4d3..82687a32ba 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
resolver = "2"
members = ["crates/*"]
package.edition = "2021"
-package.rust-version = "1.65"
+package.rust-version = "1.70"
package.license = "Apache-2.0"
[profile.release]
diff --git a/INSTALL_dependencies.sh b/INSTALL_dependencies.sh
index 5c48861152..288dea1bd4 100755
--- a/INSTALL_dependencies.sh
+++ b/INSTALL_dependencies.sh
@@ -9,7 +9,7 @@ if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
-RUST_MSRV=1.65.0
+RUST_MSRV=1.70.0
_DB_NAME="hyperswitch_db"
_DB_USER="db_user"
_DB_PASS="db_password"
diff --git a/crates/router/src/routes/lock_utils.rs b/crates/router/src/routes/lock_utils.rs
index b209fd5716..959f387a31 100644
--- a/crates/router/src/routes/lock_utils.rs
+++ b/crates/router/src/routes/lock_utils.rs
@@ -176,7 +176,7 @@ impl From<Flow> for ApiIdentifier {
| Flow::Signout
| Flow::ChangePassword
| Flow::SetDashboardMetadata
- | Flow::GetMutltipleDashboardMetadata
+ | Flow::GetMultipleDashboardMetadata
| Flow::VerifyPaymentConnector
| Flow::InternalUserSignup
| Flow::SwitchMerchant
diff --git a/crates/router/src/routes/user.rs b/crates/router/src/routes/user.rs
index 0568b31338..6603eb44b8 100644
--- a/crates/router/src/routes/user.rs
+++ b/crates/router/src/routes/user.rs
@@ -179,7 +179,7 @@ pub async fn get_multiple_dashboard_metadata(
req: HttpRequest,
query: web::Query<user_api::dashboard_metadata::GetMultipleMetaDataRequest>,
) -> HttpResponse {
- let flow = Flow::GetMutltipleDashboardMetadata;
+ let flow = Flow::GetMultipleDashboardMetadata;
let payload = match ReportSwitchExt::<_, ApiErrorResponse>::switch(parse_string_to_enums(
query.into_inner().keys,
)) {
diff --git a/crates/router_env/src/logger/types.rs b/crates/router_env/src/logger/types.rs
index 0814808434..0de256a6ac 100644
--- a/crates/router_env/src/logger/types.rs
+++ b/crates/router_env/src/logger/types.rs
@@ -309,7 +309,7 @@ pub enum Flow {
/// Set Dashboard Metadata flow
SetDashboardMetadata,
/// Get Multiple Dashboard Metadata flow
- GetMutltipleDashboardMetadata,
+ GetMultipleDashboardMetadata,
/// Payment Connector Verify
VerifyPaymentConnector,
/// Internal user signup
diff --git a/crates/test_utils/tests/connectors/selenium.rs b/crates/test_utils/tests/connectors/selenium.rs
index 303d4cd7cc..5030b98486 100644
--- a/crates/test_utils/tests/connectors/selenium.rs
+++ b/crates/test_utils/tests/connectors/selenium.rs
@@ -9,7 +9,7 @@ use std::{
collections::{HashMap, HashSet},
env,
io::Read,
- path::MAIN_SEPARATOR,
+ path::{MAIN_SEPARATOR, MAIN_SEPARATOR_STR},
time::Duration,
};
@@ -862,7 +862,7 @@ fn get_chrome_profile_path() -> Result<String, WebDriverError> {
.map(|str| {
let mut fp = str.split(MAIN_SEPARATOR).collect::<Vec<_>>();
fp.truncate(3);
- fp.join(&MAIN_SEPARATOR.to_string())
+ fp.join(MAIN_SEPARATOR_STR)
})
.unwrap();
if env::consts::OS == "macos" {
@@ -880,7 +880,7 @@ fn get_firefox_profile_path() -> Result<String, WebDriverError> {
.map(|str| {
let mut fp = str.split(MAIN_SEPARATOR).collect::<Vec<_>>();
fp.truncate(3);
- fp.join(&MAIN_SEPARATOR.to_string())
+ fp.join(MAIN_SEPARATOR_STR)
})
.unwrap();
if env::consts::OS == "macos" {
diff --git a/loadtest/Dockerfile b/loadtest/Dockerfile
index 45c4c7540a..ebea439eb8 100644
--- a/loadtest/Dockerfile
+++ b/loadtest/Dockerfile
@@ -1,10 +1,10 @@
-FROM rust:1.65 AS builder
+FROM rust:latest AS builder
WORKDIR /app
COPY . .
RUN cargo install diesel_cli && cargo build --bin router --release
-FROM rust:1.65 AS runtime
+FROM rust:latest AS runtime
WORKDIR /app
COPY --from=builder /app/migrations migrations
COPY --from=builder /app/target/release/router router
diff --git a/monitoring/docker-compose-ckh.yaml b/monitoring/docker-compose-ckh.yaml
index 2bbf5b2ec4..88fc88d133 100644
--- a/monitoring/docker-compose-ckh.yaml
+++ b/monitoring/docker-compose-ckh.yaml
@@ -156,7 +156,7 @@ services:
hard: 262144
hyperswitch-server:
- image: rust:1.65
+ image: rust:latest
command: cargo run -- -f ./config/docker_compose.toml
working_dir: /app
ports: