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

build: remove unused dependencies (#5343)

Sanchith Hegde7f582e4737c1
diff --git a/Cargo.lock b/Cargo.lock
index 0188b3d6f1..193f19453b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -344,7 +344,6 @@ dependencies = [
"common_utils",
"diesel_models",
"error-stack",
- "external_services",
"futures 0.3.30",
"hyperswitch_domain_models",
"hyperswitch_interfaces",
@@ -449,8 +448,6 @@ dependencies = [
"common_utils",
"error-stack",
"euclid",
- "frunk",
- "frunk_core",
"masking",
"mime",
"reqwest",
@@ -1996,8 +1993,6 @@ name = "common_enums"
version = "0.1.0"
dependencies = [
"diesel",
- "frunk",
- "frunk_core",
"router_derive",
"serde",
"serde_json",
@@ -2032,11 +2027,9 @@ dependencies = [
"regex",
"reqwest",
"ring 0.17.8",
- "router_derive",
"router_env",
"rust_decimal",
"rustc-hash",
- "rusty-money",
"semver 1.0.22",
"serde",
"serde_json",
@@ -2708,8 +2701,6 @@ dependencies = [
"common_utils",
"diesel",
"error-stack",
- "frunk",
- "frunk_core",
"masking",
"router_derive",
"router_env",
@@ -2966,10 +2957,7 @@ dependencies = [
"common_enums",
"common_utils",
"criterion",
- "erased-serde 0.4.4",
"euclid_macros",
- "frunk",
- "frunk_core",
"hyperswitch_constraint_graph",
"nom",
"once_cell",
@@ -3225,58 +3213,6 @@ dependencies = [
"urlencoding",
]
-[[package]]
-name = "frunk"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11a351b59e12f97b4176ee78497dff72e4276fb1ceb13e19056aca7fa0206287"
-dependencies = [
- "frunk_core",
- "frunk_derives",
- "frunk_proc_macros",
-]
-
-[[package]]
-name = "frunk_core"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af2469fab0bd07e64ccf0ad57a1438f63160c69b2e57f04a439653d68eb558d6"
-
-[[package]]
-name = "frunk_derives"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0fa992f1656e1707946bbba340ad244f0814009ef8c0118eb7b658395f19a2e"
-dependencies = [
- "frunk_proc_macro_helpers",
- "quote",
- "syn 2.0.57",
-]
-
-[[package]]
-name = "frunk_proc_macro_helpers"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35b54add839292b743aeda6ebedbd8b11e93404f902c56223e51b9ec18a13d2c"
-dependencies = [
- "frunk_core",
- "proc-macro2",
- "quote",
- "syn 2.0.57",
-]
-
-[[package]]
-name = "frunk_proc_macros"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71b85a1d4a9a6b300b41c05e8e13ef2feca03e0334127f29eca9506a7fe13a93"
-dependencies = [
- "frunk_core",
- "frunk_proc_macro_helpers",
- "quote",
- "syn 2.0.57",
-]
-
[[package]]
name = "fuchsia-zircon"
version = "0.3.3"
@@ -3900,7 +3836,6 @@ dependencies = [
"graphviz-rust",
"rustc-hash",
"serde",
- "serde_json",
"strum 0.25.0",
"thiserror",
]
@@ -3954,7 +3889,6 @@ dependencies = [
"router_env",
"serde",
"serde_json",
- "storage_impl",
"thiserror",
"time",
]
@@ -5483,8 +5417,6 @@ dependencies = [
"http 0.2.12",
"masking",
"mime",
- "router_derive",
- "router_env",
"serde",
"serde_json",
"strum 0.26.2",
@@ -6123,7 +6055,6 @@ dependencies = [
"digest",
"dyn-clone",
"encoding_rs",
- "erased-serde 0.4.4",
"error-stack",
"euclid",
"events",
@@ -6179,7 +6110,6 @@ dependencies = [
"serde_with",
"serial_test",
"sha1",
- "sqlx",
"storage_impl",
"strum 0.26.2",
"tera",
@@ -6221,7 +6151,6 @@ name = "router_env"
version = "0.1.0"
dependencies = [
"cargo_metadata 0.18.1",
- "common_enums",
"config",
"error-stack",
"gethostname",
@@ -6548,7 +6477,6 @@ dependencies = [
"external_services",
"futures 0.3.30",
"hyperswitch_domain_models",
- "masking",
"num_cpus",
"once_cell",
"rand",
@@ -7235,7 +7163,6 @@ dependencies = [
name = "storage_impl"
version = "0.1.0"
dependencies = [
- "actix-web",
"api_models",
"async-bb8-diesel",
"async-trait",
@@ -7250,10 +7177,8 @@ dependencies = [
"dyn-clone",
"error-stack",
"futures 0.3.30",
- "http 0.2.12",
"hyperswitch_domain_models",
"masking",
- "mime",
"moka",
"once_cell",
"redis_interface",
diff --git a/crates/analytics/Cargo.toml b/crates/analytics/Cargo.toml
index 8cf4b9b911..9ef0e624fc 100644
--- a/crates/analytics/Cargo.toml
+++ b/crates/analytics/Cargo.toml
@@ -6,28 +6,17 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-
[dependencies]
# First party crates
-api_models = { version = "0.1.0", path = "../api_models", features = [
- "errors",
-] }
-storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }
+api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
common_enums = { version = "0.1.0", path = "../common_enums" }
common_utils = { version = "0.1.0", path = "../common_utils" }
-external_services = { version = "0.1.0", path = "../external_services", default-features = false }
+diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
+hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
hyperswitch_interfaces = { version = "0.1.0", path = "../hyperswitch_interfaces" }
masking = { version = "0.1.0", path = "../masking" }
-router_env = { version = "0.1.0", path = "../router_env", features = [
- "log_extra_implicit_fields",
- "log_custom_entries_to_extra",
-] }
-diesel_models = { version = "0.1.0", path = "../diesel_models", features = [
- "kv_store",
-] }
-hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
+router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
+storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }
#Third Party dependencies
actix-web = "4.5.1"
@@ -38,18 +27,12 @@ aws-smithy-types = { version = "1.1.8" }
bigdecimal = { version = "0.3.1", features = ["serde"] }
error-stack = "0.4.1"
futures = "0.3.30"
-opensearch = { version = "2.2.0", features = ["aws-auth"] }
once_cell = "1.19.0"
+opensearch = { version = "2.2.0", features = ["aws-auth"] }
reqwest = { version = "0.11.27", features = ["serde_json"] }
serde = { version = "1.0.197", features = ["derive", "rc"] }
serde_json = "1.0.115"
-sqlx = { version = "0.7.3", features = [
- "postgres",
- "runtime-tokio",
- "runtime-tokio-native-tls",
- "time",
- "bigdecimal",
-] }
+sqlx = { version = "0.7.3", features = ["postgres", "runtime-tokio", "runtime-tokio-native-tls", "time", "bigdecimal"] }
strum = { version = "0.26.2", features = ["derive"] }
thiserror = "1.0.58"
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std"] }
diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.toml
index 0595bdc3e7..9c9e1b8501 100644
--- a/crates/api_models/Cargo.toml
+++ b/crates/api_models/Cargo.toml
@@ -30,8 +30,7 @@ strum = { version = "0.26", features = ["derive"] }
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std"] }
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order"] }
-frunk = "0.4.2"
-frunk_core = "0.4.2"
+
# First party crates
cards = { version = "0.1.0", path = "../cards" }
common_enums = { version = "0.1.0", path = "../common_enums" }
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs
index 1161602435..2fc709bf1f 100644
--- a/crates/api_models/src/enums.rs
+++ b/crates/api_models/src/enums.rs
@@ -618,7 +618,6 @@ pub enum LockerChoice {
serde::Deserialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
ToSchema,
)]
#[serde(rename_all = "snake_case")]
diff --git a/crates/common_enums/Cargo.toml b/crates/common_enums/Cargo.toml
index c69676c01d..e29261192f 100644
--- a/crates/common_enums/Cargo.toml
+++ b/crates/common_enums/Cargo.toml
@@ -13,14 +13,12 @@ openapi = []
payouts = []
[dependencies]
-thiserror = "1.0.58"
diesel = { version = "2.1.5", features = ["postgres"] }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
strum = { version = "0.26", features = ["derive"] }
+thiserror = "1.0.58"
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order"] }
-frunk = "0.4.2"
-frunk_core = "0.4.2"
# First party crates
router_derive = { version = "0.1.0", path = "../router_derive" }
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs
index 5be7dcd66f..4cc57d180a 100644
--- a/crates/common_enums/src/enums.rs
+++ b/crates/common_enums/src/enums.rs
@@ -326,7 +326,6 @@ pub enum AuthenticationType {
serde::Deserialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
)]
#[router_derive::diesel_enum(storage_type = "db_enum")]
#[strum(serialize_all = "snake_case")]
diff --git a/crates/common_utils/Cargo.toml b/crates/common_utils/Cargo.toml
index f6c3d8b6d0..df6b440063 100644
--- a/crates/common_utils/Cargo.toml
+++ b/crates/common_utils/Cargo.toml
@@ -17,6 +17,7 @@ metrics = ["dep:router_env", "dep:futures"]
[dependencies]
async-trait = { version = "0.1.79", optional = true }
+blake3 = { version = "1.5.1", features = ["serde"] }
bytes = "1.6.0"
diesel = "2.1.5"
error-stack = "0.4.1"
@@ -25,6 +26,7 @@ hex = "0.4.3"
http = "0.2.12"
md5 = "0.7.0"
nanoid = "0.4.0"
+nutype = { version = "0.4.2", features = ["serde"] }
once_cell = "1.19.0"
phonenumber = "0.3.3"
quick-xml = { version = "0.31.0", features = ["serialize"] }
@@ -46,16 +48,11 @@ tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"], optional
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order"] }
uuid = { version = "1.8.0", features = ["v7"] }
-blake3 = { version = "1.5.1", features = ["serde"] }
-
# First party crates
-rusty-money = { git = "https://github.com/varunsrin/rusty_money", rev = "bbc0150742a0fff905225ff11ee09388e9babdcc", features = ["iso", "crypto"] }
common_enums = { version = "0.1.0", path = "../common_enums" }
masking = { version = "0.1.0", path = "../masking" }
-router_derive = { version = "0.1.0", path = "../router_derive" }
router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"], optional = true }
-nutype = { version = "0.4.2", features = ["serde"] }
[target.'cfg(not(target_os = "windows"))'.dependencies]
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"], optional = true }
diff --git a/crates/connector_configs/Cargo.toml b/crates/connector_configs/Cargo.toml
index de0c963d7b..4b0f810df2 100644
--- a/crates/connector_configs/Cargo.toml
+++ b/crates/connector_configs/Cargo.toml
@@ -15,7 +15,10 @@ dummy_connector = ["api_models/dummy_connector", "development"]
payouts = ["api_models/payouts"]
[dependencies]
+# First party crates
api_models = { version = "0.1.0", path = "../api_models", package = "api_models" }
+
+# Third party crates
serde = { version = "1.0.197", features = ["derive"] }
serde_with = "3.7.0"
toml = "0.8.12"
diff --git a/crates/currency_conversion/Cargo.toml b/crates/currency_conversion/Cargo.toml
index 40129258a6..bc255c57e1 100644
--- a/crates/currency_conversion/Cargo.toml
+++ b/crates/currency_conversion/Cargo.toml
@@ -6,7 +6,6 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# First party crates
common_enums = { version = "0.1.0", path = "../common_enums", package = "common_enums" }
diff --git a/crates/diesel_models/Cargo.toml b/crates/diesel_models/Cargo.toml
index 577233cdf1..f33427aaf3 100644
--- a/crates/diesel_models/Cargo.toml
+++ b/crates/diesel_models/Cargo.toml
@@ -15,8 +15,6 @@ kv_store = []
async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
diesel = { version = "2.1.5", features = ["postgres", "serde_json", "time", "64-column-tables"] }
error-stack = "0.4.1"
-frunk = "0.4.2"
-frunk_core = "0.4.2"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
strum = { version = "0.26.2", features = ["derive"] }
diff --git a/crates/diesel_models/src/enums.rs b/crates/diesel_models/src/enums.rs
index 5eeed2990a..96678a7a3e 100644
--- a/crates/diesel_models/src/enums.rs
+++ b/crates/diesel_models/src/enums.rs
@@ -205,7 +205,6 @@ pub enum FraudCheckType {
serde::Deserialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
)]
#[diesel_enum(storage_type = "text")]
#[strum(serialize_all = "snake_case")]
@@ -228,7 +227,6 @@ pub enum FraudCheckLastStep {
serde::Deserialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
)]
#[diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
@@ -249,7 +247,6 @@ pub enum UserStatus {
serde::Serialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
)]
#[router_derive::diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
@@ -291,7 +288,6 @@ pub enum DashboardMetadata {
serde::Deserialize,
strum::Display,
strum::EnumString,
- frunk::LabelledGeneric,
)]
#[diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
diff --git a/crates/drainer/Cargo.toml b/crates/drainer/Cargo.toml
index 424ca65884..c3e6b42135 100644
--- a/crates/drainer/Cargo.toml
+++ b/crates/drainer/Cargo.toml
@@ -14,6 +14,7 @@ vergen = ["router_env/vergen"]
[dependencies]
actix-web = "4.5.1"
async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
+async-trait = "0.1.79"
bb8 = "0.8"
clap = { version = "4.4.18", default-features = false, features = ["std", "derive", "help", "usage"] }
config = { version = "0.14.0", features = ["toml"] }
@@ -27,7 +28,6 @@ serde_json = "1.0.115"
serde_path_to_error = "0.1.16"
thiserror = "1.0.58"
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"] }
-async-trait = "0.1.79"
# First Party Crates
common_utils = { version = "0.1.0", path = "../common_utils", features = ["signals"] }
diff --git a/crates/euclid/Cargo.toml b/crates/euclid/Cargo.toml
index 63c9c1508d..c8cf00eb41 100644
--- a/crates/euclid/Cargo.toml
+++ b/crates/euclid/Cargo.toml
@@ -7,9 +7,6 @@ rust-version.workspace = true
license.workspace = true
[dependencies]
-erased-serde = "0.4.4"
-frunk = "0.4.2"
-frunk_core = "0.4.2"
nom = { version = "7.1.3", features = ["alloc"], optional = true }
once_cell = "1.19.0"
rustc-hash = "1.1.0"
@@ -21,9 +18,9 @@ utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order
# First party dependencies
common_enums = { version = "0.1.0", path = "../common_enums" }
-hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph", features = ["viz"] }
+common_utils = { version = "0.1.0", path = "../common_utils" }
euclid_macros = { version = "0.1.0", path = "../euclid_macros" }
-common_utils = { version = "0.1.0", path = "../common_utils"}
+hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph", features = ["viz"] }
[features]
default = []
diff --git a/crates/euclid_wasm/Cargo.toml b/crates/euclid_wasm/Cargo.toml
index be8f61240d..47127c8212 100644
--- a/crates/euclid_wasm/Cargo.toml
+++ b/crates/euclid_wasm/Cargo.toml
@@ -6,7 +6,6 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
@@ -21,12 +20,12 @@ payouts = ["api_models/payouts", "euclid/payouts"]
[dependencies]
api_models = { version = "0.1.0", path = "../api_models", package = "api_models" }
-hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph" }
-currency_conversion = { version = "0.1.0", path = "../currency_conversion" }
+common_enums = { version = "0.1.0", path = "../common_enums" }
connector_configs = { version = "0.1.0", path = "../connector_configs" }
+currency_conversion = { version = "0.1.0", path = "../currency_conversion" }
euclid = { version = "0.1.0", path = "../euclid", features = [] }
+hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph" }
kgraph_utils = { version = "0.1.0", path = "../kgraph_utils" }
-common_enums = { version = "0.1.0", path = "../common_enums" }
# Third party crates
getrandom = { version = "0.2.12", features = ["js"] }
diff --git a/crates/events/Cargo.toml b/crates/events/Cargo.toml
index 228fba60a6..335a3941d5 100644
--- a/crates/events/Cargo.toml
+++ b/crates/events/Cargo.toml
@@ -7,9 +7,9 @@ rust-version.workspace = true
license.workspace = true
[dependencies]
-# First Party crates
+# First Party crates
masking = { version = "0.1.0", path = "../masking" }
-router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"]}
+router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
# Third Party crates
error-stack = "0.4.1"
diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.toml
index 31e22d4a64..85df79701a 100644
--- a/crates/external_services/Cargo.toml
+++ b/crates/external_services/Cargo.toml
@@ -17,21 +17,21 @@ hashicorp-vault = ["dep:vaultrs"]
async-trait = "0.1.79"
aws-config = { version = "0.55.3", optional = true }
aws-sdk-kms = { version = "0.28.0", optional = true }
+aws-sdk-s3 = { version = "0.28.0", optional = true }
aws-sdk-sesv2 = "0.28.0"
aws-sdk-sts = "0.28.0"
-aws-sdk-s3 = { version = "0.28.0", optional = true }
aws-smithy-client = "0.55.3"
base64 = "0.22.0"
dyn-clone = "1.0.17"
error-stack = "0.4.1"
+hex = "0.4.3"
+hyper = "0.14.28"
+hyper-proxy = "0.9.1"
once_cell = "1.19.0"
serde = { version = "1.0.197", features = ["derive"] }
thiserror = "1.0.58"
tokio = "1.37.0"
-hyper-proxy = "0.9.1"
-hyper = "0.14.28"
vaultrs = { version = "0.7.2", optional = true }
-hex = "0.4.3"
# First party crates
common_utils = { version = "0.1.0", path = "../common_utils" }
diff --git a/crates/hsdev/Cargo.toml b/crates/hsdev/Cargo.toml
index 6600d41d9f..3864996ece 100644
--- a/crates/hsdev/Cargo.toml
+++ b/crates/hsdev/Cargo.toml
@@ -1,16 +1,16 @@
[package]
name = "hsdev"
version = "0.1.0"
-license.workspace = true
+license.workspace = true
edition.workspace = true
-rust-version.workspace = true
+rust-version.workspace = true
description = "A simple diesel postgres migrator that uses TOML files"
repository = "https://github.com/juspay/hyperswitch.git"
readme = "README.md"
[dependencies]
+clap = { version = "4.1.8", features = ["derive"] }
diesel = { version = "2.1.6", features = ["postgres"] }
diesel_migrations = "2.1.0"
-toml = "0.5"
-clap = { version = "4.1.8", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
+toml = "0.5"
diff --git a/crates/hyperswitch_constraint_graph/Cargo.toml b/crates/hyperswitch_constraint_graph/Cargo.toml
index 4fe97b2b1a..34cf535d08 100644
--- a/crates/hyperswitch_constraint_graph/Cargo.toml
+++ b/crates/hyperswitch_constraint_graph/Cargo.toml
@@ -5,8 +5,6 @@ version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
[features]
viz = ["dep:graphviz-rust"]
@@ -15,6 +13,5 @@ erased-serde = "0.3.28"
graphviz-rust = { version = "0.6.2", optional = true }
rustc-hash = "1.1.0"
serde = { version = "1.0.163", features = ["derive", "rc"] }
-serde_json = "1.0.96"
strum = { version = "0.25", features = ["derive"] }
thiserror = "1.0.43"
diff --git a/crates/hyperswitch_domain_models/Cargo.toml b/crates/hyperswitch_domain_models/Cargo.toml
index 320d44cf21..ab56946468 100644
--- a/crates/hyperswitch_domain_models/Cargo.toml
+++ b/crates/hyperswitch_domain_models/Cargo.toml
@@ -16,11 +16,11 @@ frm = ["api_models/frm"]
[dependencies]
# First party deps
api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
+cards = { version = "0.1.0", path = "../cards" }
common_enums = { version = "0.1.0", path = "../common_enums" }
common_utils = { version = "0.1.0", path = "../common_utils", features = ["async_ext", "metrics"] }
-masking = { version = "0.1.0", path = "../masking" }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
-cards = { version = "0.1.0", path = "../cards" }
+masking = { version = "0.1.0", path = "../masking" }
router_derive = { version = "0.1.0", path = "../router_derive" }
router_env = { version = "0.1.0", path = "../router_env" }
@@ -28,6 +28,7 @@ router_env = { version = "0.1.0", path = "../router_env" }
actix-web = "4.5.1"
async-trait = "0.1.79"
error-stack = "0.4.1"
+futures = "0.3.30"
http = "0.2.12"
mime = "0.3.17"
serde = { version = "1.0.197", features = ["derive"] }
@@ -37,4 +38,3 @@ thiserror = "1.0.58"
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std"] }
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order", "time"] }
-futures = "0.3.30"
diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.toml
index 3c481caef1..db61a05436 100644
--- a/crates/hyperswitch_interfaces/Cargo.toml
+++ b/crates/hyperswitch_interfaces/Cargo.toml
@@ -34,4 +34,3 @@ hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_m
masking = { version = "0.1.0", path = "../masking" }
router_derive = { version = "0.1.0", path = "../router_derive" }
router_env = { version = "0.1.0", path = "../router_env" }
-storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }
\ No newline at end of file
diff --git a/crates/kgraph_utils/Cargo.toml b/crates/kgraph_utils/Cargo.toml
index 6172e75629..d4110ae618 100644
--- a/crates/kgraph_utils/Cargo.toml
+++ b/crates/kgraph_utils/Cargo.toml
@@ -13,16 +13,16 @@ dummy_connector = ["api_models/dummy_connector", "euclid/dummy_connector"]
[dependencies]
api_models = { version = "0.1.0", path = "../api_models", package = "api_models" }
common_enums = { version = "0.1.0", path = "../common_enums" }
-hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph", features = ["viz"] }
+common_utils = { version = "0.1.0", path = "../common_utils" }
euclid = { version = "0.1.0", path = "../euclid" }
+hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph", features = ["viz"] }
masking = { version = "0.1.0", path = "../masking/" }
-common_utils = {version = "0.1.0", path = "../common_utils"}
# Third party crates
serde = "1.0.197"
serde_json = "1.0.115"
-thiserror = "1.0.58"
strum = { version = "0.26", features = ["derive"] }
+thiserror = "1.0.58"
[dev-dependencies]
criterion = "0.5"
diff --git a/crates/masking/Cargo.toml b/crates/masking/Cargo.toml
index 5c73ed7ea3..c65fdaa96a 100644
--- a/crates/masking/Cargo.toml
+++ b/crates/masking/Cargo.toml
@@ -24,7 +24,7 @@ erased-serde = "0.4.4"
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1.0.115", optional = true }
subtle = "2.5.0"
-time = {version = "0.3.35", optional = true, features = ["serde-human-readable"] }
+time = { version = "0.3.35", optional = true, features = ["serde-human-readable"] }
url = { version = "2.5.0", features = ["serde"] }
zeroize = { version = "1.7", default-features = false }
diff --git a/crates/openapi/Cargo.toml b/crates/openapi/Cargo.toml
index 9b81225bcb..e3e3bcc4a8 100644
--- a/crates/openapi/Cargo.toml
+++ b/crates/openapi/Cargo.toml
@@ -5,12 +5,12 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
[dependencies]
+# Third party crates
serde_json = "1.0.115"
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order", "time"] }
+# First party crates
api_models = { version = "0.1.0", path = "../api_models", features = ["frm", "payouts", "openapi"] }
common_utils = { version = "0.1.0", path = "../common_utils" }
router_env = { version = "0.1.0", path = "../router_env" }
diff --git a/crates/pm_auth/Cargo.toml b/crates/pm_auth/Cargo.toml
index bb56db6f23..a3c47e97d7 100644
--- a/crates/pm_auth/Cargo.toml
+++ b/crates/pm_auth/Cargo.toml
@@ -13,8 +13,6 @@ api_models = { version = "0.1.0", path = "../api_models" }
common_enums = { version = "0.1.0", path = "../common_enums" }
common_utils = { version = "0.1.0", path = "../common_utils" }
masking = { version = "0.1.0", path = "../masking" }
-router_derive = { version = "0.1.0", path = "../router_derive" }
-router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
# Third party crates
async-trait = "0.1.79"
diff --git a/crates/redis_interface/Cargo.toml b/crates/redis_interface/Cargo.toml
index d55ff86bce..e9dfc8cb51 100644
--- a/crates/redis_interface/Cargo.toml
+++ b/crates/redis_interface/Cargo.toml
@@ -14,7 +14,7 @@ futures = "0.3"
serde = { version = "1.0.197", features = ["derive"] }
thiserror = "1.0.58"
tokio = "1.37.0"
-tokio-stream = {version = "0.1.15", features = ["sync"]}
+tokio-stream = { version = "0.1.15", features = ["sync"] }
tracing = { workspace = true }
# First party crates
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml
index 438e0dc323..1379b17eec 100644
--- a/crates/router/Cargo.toml
+++ b/crates/router/Cargo.toml
@@ -11,12 +11,12 @@ license.workspace = true
[features]
default = ["kv_store", "stripe", "oltp", "olap", "accounts_cache", "dummy_connector", "payouts", "payout_retry", "retry", "frm", "tls"]
tls = ["actix-web/rustls-0_22"]
-keymanager_mtls = ["reqwest/rustls-tls","common_utils/keymanager_mtls"]
+keymanager_mtls = ["reqwest/rustls-tls", "common_utils/keymanager_mtls"]
email = ["external_services/email", "scheduler/email", "olap"]
keymanager_create = []
frm = ["api_models/frm", "hyperswitch_domain_models/frm"]
stripe = ["dep:serde_qs"]
-release = ["stripe", "email", "accounts_cache", "kv_store", "vergen", "recon", "external_services/aws_kms", "external_services/aws_s3","keymanager_mtls","keymanager_create"]
+release = ["stripe", "email", "accounts_cache", "kv_store", "vergen", "recon", "external_services/aws_kms", "external_services/aws_s3", "keymanager_mtls", "keymanager_create"]
olap = ["hyperswitch_domain_models/olap", "storage_impl/olap", "scheduler/olap", "api_models/olap", "dep:analytics"]
oltp = ["storage_impl/oltp"]
kv_store = ["scheduler/kv_store"]
@@ -33,11 +33,12 @@ v2 = ["api_models/v2"]
[dependencies]
actix-cors = "0.6.5"
+actix-http = "3.6.0"
actix-multipart = "0.6.1"
actix-rt = "2.9.0"
actix-web = "4.5.1"
-async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
argon2 = { version = "0.5.3", features = ["std"] }
+async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
async-trait = "0.1.79"
base64 = "0.22.0"
bb8 = "0.8"
@@ -60,6 +61,8 @@ http = "0.2.12"
hyper = "0.14.28"
image = { version = "0.25.1", default-features = false, features = ["png"] }
infer = "0.15.0"
+iso_currency = "0.4.4"
+isocountry = "0.3.2"
josekit = "0.8.6"
jsonwebtoken = "9.2.0"
maud = { version = "0.26.0", features = ["actix-web"] }
@@ -68,11 +71,13 @@ mime = "0.3.17"
nanoid = "0.4.0"
num_cpus = "1.16.0"
once_cell = "1.19.0"
-openidconnect = "3.5.0" # TODO: remove reqwest
+openidconnect = "3.5.0" # TODO: remove reqwest
openssl = "0.10.64"
qrcode = "0.14.0"
+quick-xml = { version = "0.31.0", features = ["serialize"] }
rand = "0.8.5"
rand_chacha = "0.3.1"
+rdkafka = "0.36.2"
regex = "1.10.4"
reqwest = { version = "0.11.27", features = ["json", "native-tls", "__rustls", "gzip", "multipart"] }
ring = "0.17.8"
@@ -85,54 +90,47 @@ serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
serde_path_to_error = "0.1.16"
serde_qs = { version = "0.12.0", optional = true }
+serde_repr = "0.1.19"
serde_urlencoded = "0.7.1"
serde_with = "3.7.0"
sha1 = { version = "0.10.6" }
-sqlx = { version = "0.7.3", features = ["postgres", "runtime-tokio", "runtime-tokio-native-tls", "time", "bigdecimal"] }
strum = { version = "0.26", features = ["derive"] }
tera = "1.19.1"
thiserror = "1.0.58"
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std", "parsing", "serde-human-readable"] }
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"] }
+totp-rs = { version = "5.5.1", features = ["gen_secret", "otpauth"] }
+tracing-futures = { version = "0.2.5", features = ["tokio"] }
unicode-segmentation = "1.11.0"
+unidecode = "0.3.0"
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order", "time"] }
uuid = { version = "1.8.0", features = ["v4"] }
validator = "0.17.0"
x509-parser = "0.16.0"
-tracing-futures = { version = "0.2.5", features = ["tokio"] }
# First party crates
-api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
analytics = { version = "0.1.0", path = "../analytics", optional = true }
+api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
cards = { version = "0.1.0", path = "../cards" }
common_enums = { version = "0.1.0", path = "../common_enums" }
-common_utils = { version = "0.1.0", path = "../common_utils", features = ["signals", "async_ext", "logs", "metrics","keymanager"] }
-hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph" }
+common_utils = { version = "0.1.0", path = "../common_utils", features = ["signals", "async_ext", "logs", "metrics", "keymanager"] }
currency_conversion = { version = "0.1.0", path = "../currency_conversion" }
-hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
euclid = { version = "0.1.0", path = "../euclid", features = ["valued_jit"] }
-pm_auth = { version = "0.1.0", path = "../pm_auth", package = "pm_auth" }
+events = { version = "0.1.0", path = "../events" }
external_services = { version = "0.1.0", path = "../external_services" }
+hyperswitch_constraint_graph = { version = "0.1.0", path = "../hyperswitch_constraint_graph" }
+hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
hyperswitch_interfaces = { version = "0.1.0", path = "../hyperswitch_interfaces" }
kgraph_utils = { version = "0.1.0", path = "../kgraph_utils" }
masking = { version = "0.1.0", path = "../masking" }
+pm_auth = { version = "0.1.0", path = "../pm_auth", package = "pm_auth" }
redis_interface = { version = "0.1.0", path = "../redis_interface" }
router_derive = { version = "0.1.0", path = "../router_derive" }
router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
scheduler = { version = "0.1.0", path = "../scheduler", default-features = false }
storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }
-erased-serde = "0.4.4"
-quick-xml = { version = "0.31.0", features = ["serialize"] }
-rdkafka = "0.36.2"
-isocountry = "0.3.2"
-iso_currency = "0.4.4"
-actix-http = "3.6.0"
-events = { version = "0.1.0", path = "../events" }
-totp-rs = { version = "5.5.1", features = ["gen_secret", "otpauth"] }
-serde_repr = "0.1.19"
-unidecode = "0.3.0"
[build-dependencies]
router_env = { version = "0.1.0", path = "../router_env", default-features = false }
diff --git a/crates/router_derive/Cargo.toml b/crates/router_derive/Cargo.toml
index 99e50bf552..82535e1bd1 100644
--- a/crates/router_derive/Cargo.toml
+++ b/crates/router_derive/Cargo.toml
@@ -15,8 +15,8 @@ doctest = false
indexmap = "2.2.6"
proc-macro2 = "1.0.79"
quote = "1.0.35"
-syn = { version = "2.0.57", features = ["full", "extra-traits"] } # the full feature does not seem to encompass all the features
strum = { version = "0.26.2", features = ["derive"] }
+syn = { version = "2.0.57", features = ["full", "extra-traits"] } # the full feature does not seem to encompass all the features
[dev-dependencies]
diesel = { version = "2.1.5", features = ["postgres"] }
diff --git a/crates/router_env/Cargo.toml b/crates/router_env/Cargo.toml
index 59bfb4d5c8..b9b1184fed 100644
--- a/crates/router_env/Cargo.toml
+++ b/crates/router_env/Cargo.toml
@@ -14,7 +14,6 @@ error-stack = "0.4.1"
gethostname = "0.4.3"
once_cell = "1.19.0"
opentelemetry = { version = "0.19.0", features = ["rt-tokio-current-thread", "metrics"] }
-common_enums = { path = "../common_enums" }
opentelemetry-otlp = { version = "0.12.0", features = ["metrics"] }
rustc-hash = "1.1"
serde = { version = "1.0.197", features = ["derive"] }
diff --git a/crates/scheduler/Cargo.toml b/crates/scheduler/Cargo.toml
index 73832a1ad6..14a0c8884e 100644
--- a/crates/scheduler/Cargo.toml
+++ b/crates/scheduler/Cargo.toml
@@ -31,12 +31,7 @@ uuid = { version = "1.8.0", features = ["v4"] }
common_utils = { version = "0.1.0", path = "../common_utils", features = ["signals", "async_ext"] }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
external_services = { version = "0.1.0", path = "../external_services" }
-masking = { version = "0.1.0", path = "../masking" }
+hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
redis_interface = { version = "0.1.0", path = "../redis_interface" }
router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"] }
storage_impl = { version = "0.1.0", path = "../storage_impl", default-features = false }
-hyperswitch_domain_models = {version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
-
-# [[bin]]
-# name = "scheduler"
-# path = "src/bin/scheduler.rs"
diff --git a/crates/storage_impl/Cargo.toml b/crates/storage_impl/Cargo.toml
index d96d5ac7d5..54374643f4 100644
--- a/crates/storage_impl/Cargo.toml
+++ b/crates/storage_impl/Cargo.toml
@@ -7,7 +7,6 @@ rust-version.workspace = true
readme = "README.md"
license.workspace = true
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["olap", "oltp"]
oltp = []
@@ -17,17 +16,16 @@ payouts = ["hyperswitch_domain_models/payouts"]
[dependencies]
# First Party dependencies
api_models = { version = "0.1.0", path = "../api_models" }
-common_utils = { version = "0.1.0", path = "../common_utils" }
common_enums = { version = "0.1.0", path = "../common_enums" }
-hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
+common_utils = { version = "0.1.0", path = "../common_utils" }
diesel_models = { version = "0.1.0", path = "../diesel_models" }
+hyperswitch_domain_models = { version = "0.1.0", path = "../hyperswitch_domain_models", default-features = false }
masking = { version = "0.1.0", path = "../masking" }
redis_interface = { version = "0.1.0", path = "../redis_interface" }
router_derive = { version = "0.1.0", path = "../router_derive" }
router_env = { version = "0.1.0", path = "../router_env" }
# Third party crates
-actix-web = "4.5.1"
async-bb8-diesel = { git = "https://github.com/jarnura/async-bb8-diesel", rev = "53b4ab901aab7635c8215fd1c2d542c8db443094" }
async-trait = "0.1.79"
bb8 = "0.8.3"
@@ -38,8 +36,6 @@ diesel = { version = "2.1.5", default-features = false, features = ["postgres"]
dyn-clone = "1.0.17"
error-stack = "0.4.1"
futures = "0.3.30"
-http = "0.2.12"
-mime = "0.3.17"
moka = { version = "0.12", features = ["future"] }
once_cell = "1.19.0"
serde = { version = "1.0.197", features = ["derive"] }
diff --git a/crates/test_utils/Cargo.toml b/crates/test_utils/Cargo.toml
index 6d8663c030..3b9eaa7329 100644
--- a/crates/test_utils/Cargo.toml
+++ b/crates/test_utils/Cargo.toml
@@ -13,8 +13,8 @@ dummy_connector = []
payouts = []
[dependencies]
-async-trait = "0.1.79"
anyhow = "1.0.81"
+async-trait = "0.1.79"
base64 = "0.22.0"
clap = { version = "4.4.18", default-features = false, features = ["std", "derive", "help", "usage"] }
rand = "0.8.5"