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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
[package]
name = "common_utils"
description = "Utilities shared across `router` and other crates"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
readme = "README.md"
license.workspace = true
[features]
default = []
diesel = ["dep:diesel", "hyperswitch_masking/diesel"]
keymanager = ["dep:router_env", "dep:tracing"]
keymanager_mtls = ["reqwest/rustls"]
encryption_service = ["dep:router_env"]
km_forward_x_request_id = ["dep:router_env", "router_env/actix_web"]
ext_services_latency = ["dep:router_env"]
signals = ["dep:signal-hook-tokio", "dep:signal-hook", "dep:tokio", "dep:router_env", "dep:futures"]
async_ext = ["dep:async-trait", "dep:futures"]
logs = ["dep:router_env"]
metrics = ["dep:router_env", "dep:futures"]
payouts = ["common_enums/payouts"]
v1 = []
v2 = []
crypto_openssl = ["dep:openssl"]
tokenization_v2 = []
deja = ["dep:deja"]
[dependencies]
async-trait = { version = "0.1.92", optional = true }
base64 = "0.22.1"
base64-serde = "0.8.0"
blake3 = { version = "1.8.2", features = ["serde"] }
bytes = { version = "1.10.1", features = ["serde"] }
diesel = { version = "2.3.12", features = ["postgres"], optional = true }
deja = { git = "https://github.com/juspay/deja", rev = "3fe15f88537c4bf4375504de4582217ba4e2d8e0", optional = true, default-features = false }
error-stack = "0.4.1"
futures = { version = "0.3.31", optional = true }
globset = "0.4.16"
hex = "0.4.3"
http = "0.2.12"
ip_network = { version = "0.4.1", default-features = false }
md5 = "0.7.0"
mime = "0.3.17"
nanoid = "0.4.0"
nutype = { version = "0.4.3", features = ["serde"] }
once_cell = "1.21.3"
openssl = {version = "0.10.72", optional = true}
pem = "2.0.0"
phonenumber = "0.3.7"
quick-xml = { version = "0.31.0", features = ["serialize"] }
rand = "0.8.5"
regex = "1.11.1"
reqwest = { version = "0.13.5", features = ["json", "native-tls-no-alpn", "gzip", "multipart"] }
ring = { version = "0.17.14", features = ["std", "wasm32_unknown_unknown_js"] }
rsa = {version = "0.9.8", features = ["sha2"]}
rust_decimal = "1.37"
rustc-hash = "1.1.0"
semver = { version = "1.0.26", features = ["serde"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
serde_urlencoded = "0.7.1"
signal-hook = { version = "0.3.18", optional = true }
strum = { version = "0.26.3", features = ["derive"] }
thiserror = "1.0.69"
time = { version = "0.3.41", features = ["serde", "serde-well-known", "std", "macros"] }
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread"], optional = true }
tracing = { workspace = true, optional = true }
url = { version = "2.5.4", features = ["serde"] }
urlencoding = "2.1.3"
utoipa = { version = "4.2.3", features = ["preserve_order", "preserve_path_order"] }
uuid = { version = "1.17.0", features = ["serde", "v4", "v7"] }
ammonia = "3.3"
# First party crates
common_enums = { version = "0.1.0", path = "../common_enums" }
hyperswitch_masking = { version = "0.0.1", features = ["serde", "time"] }
router_env = { version = "0.1.0", path = "../router_env", features = ["log_extra_implicit_fields", "log_custom_entries_to_extra"], optional = true, default-features = false }
[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.17.0"
features = ["v7", "js"]
[target.'cfg(not(target_os = "windows"))'.dependencies]
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"], optional = true }
[dev-dependencies]
fake = "2.10.0"
proptest = "1.6.0"
test-case = "3.3.1"
[lints]
workspace = true