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

4.3 KB
Raw Blame
[package]
name = "external_services"
description = "Interactions of the router with external systems"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
readme = "README.md"
license.workspace = true

[features]
aws_kms = ["dep:cloud_services", "cloud_services/aws_kms"]
email = ["dep:cloud_services", "cloud_services/ses", "cloud_services/smtp"]
aws_s3 = ["dep:cloud_services", "cloud_services/s3"]
oci_object_storage = ["dep:cloud_services", "cloud_services/oci_object_storage"]
gcs_object_storage = ["dep:cloud_services", "cloud_services/gcs_object_storage"]
gcp_kms = ["dep:cloud_services", "cloud_services/gcp_kms"]
oci_kms = ["dep:cloud_services", "cloud_services/oci_kms"]
hashicorp-vault = ["dep:vaultrs"]
superposition = [
    "dep:open-feature",
    "dep:superposition_provider",
    "dep:superposition_sdk",
    "dep:api_models",
]
v1 = ["hyperswitch_interfaces/v1", "common_utils/v1"]
v2 = ["hyperswitch_interfaces/v2", "common_utils/v2"]
deja = [
    "dep:bytes",
    "dep:deja",
    "dep:futures",
    "reqwest/stream",
    "dep:http-body",
    "dep:http-body-util",
    "dep:prost-reflect",
]
revenue_recovery = [
    "dep:prost",
    "dep:router_env",
    "dep:tonic-prost",
    "tokio/macros",
    "tokio/rt-multi-thread",
    "dep:hyper-util",
    "dep:http-body-util",
    "dep:prost-types",
]
dynamic_routing = [
    "dep:prost",
    "dep:api_models",
    "dep:tonic-prost",
    "tokio/macros",
    "tokio/rt-multi-thread",
    "dep:router_env",
    "dep:hyper-util",
    "dep:http-body-util",
]

[dependencies]
tracing = { workspace = true }
async-trait = "0.1.92"
aws-smithy-types = "1.3.1"
base64 = "0.22.1"
dyn-clone = "1.0.19"
deja = { git = "https://github.com/juspay/deja", rev = "3fe15f88537c4bf4375504de4582217ba4e2d8e0", optional = true, default-features = false }
error-stack = "0.4.1"
hex = "0.4.3"
hyper = "1.6.0"
once_cell = "1.21.3"
serde = { version = "1.0.219", features = ["derive"] }
thiserror = "1.0.69"
serde_json = "1.0.140"
serde_urlencoded = "0.7.1"
vaultrs = { version = "0.7.4", optional = true }
prost = { version = "0.14", optional = true }
prost-reflect = { version = "0.16.5", features = ["serde"], optional = true }
prost-types = { version = "0.14", optional = true }
time = { version = "0.3.41", features = ["serde", "serde-well-known", "std"] }
tokio = { version = "1.48.0", features = ["net", "io-util", "time", "sync"] }
tonic = "0.14"
tonic-prost = { version = "0.14", optional = true }
tonic-reflection = "0.14.0"
tonic-types = "0.13.1"
typed-builder = "0.21.2"
hyper-util = { version = "0.1.12", optional = true }
http-body-util = { version = "0.1.3", optional = true }
http-body = { version = "1.0.1", optional = true }
reqwest = { version = "0.13.5", features = [
    "rustls",
    "native-tls-no-alpn",
    "form",
    "query",
] }
http = "1.3.1"
url = { version = "2.5.4", features = ["serde"] }
quick-xml = { version = "0.31.0", features = ["serialize"] }

unified-connector-service-client = { git = "https://github.com/juspay/connector-service", tag = "2026.11.18.1", package = "rust-grpc-client" }
open-feature = { version = "0.2.5", optional = true }
bytes = { version = "1.10.1", optional = true }
futures = { version = "0.3.31", optional = true }
superposition_provider = { version = "0.120.0", optional = true }
superposition_types = "0.120.0"
superposition_sdk = { version = "0.120.0", optional = true }


# First party crates
common_utils = { version = "0.1.0", path = "../common_utils", features = [
    "async_ext",
] }
common_enums = { version = "0.1.0", path = "../common_enums" }
hyperswitch_interfaces = { version = "0.1.0", path = "../hyperswitch_interfaces", default-features = false }
cloud_services = { version = "0.1.0", path = "../cloud_services", optional = true }
hyperswitch_masking = "0.0.1"
router_env = { version = "0.1.0", path = "../router_env", features = [
    "log_extra_implicit_fields",
    "log_custom_entries_to_extra",
] }
api_models = { version = "0.1.0", path = "../api_models", optional = true }


[build-dependencies]
router_env = { version = "0.1.0", path = "../router_env", default-features = false, optional = true }
tonic-prost-build = "0.14"

[dev-dependencies]
# Test-only: the deja gRPC transport test drives a real tonic server over a
# TcpListener via `tokio_stream::wrappers::TcpListenerStream` (the `net` feature).
tokio-stream = { version = "0.1.17", features = ["net"] }

[lints]
workspace = true