mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
77 lines
2.6 KiB
TOML
77 lines
2.6 KiB
TOML
[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 = []
|
|
keymanager = ["dep:router_env"]
|
|
keymanager_mtls = ["reqwest/rustls-tls"]
|
|
encryption_service = ["dep:router_env"]
|
|
km_forward_x_request_id = ["dep:router_env", "router_env/actix_web"]
|
|
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 = []
|
|
customer_v2 = []
|
|
payment_methods_v2 = []
|
|
|
|
[dependencies]
|
|
async-trait = { version = "0.1.79", optional = true }
|
|
base64 = "0.22.0"
|
|
blake3 = { version = "1.5.1", features = ["serde"] }
|
|
bytes = "1.6.0"
|
|
diesel = "2.2.3"
|
|
error-stack = "0.4.1"
|
|
futures = { version = "0.3.30", optional = true }
|
|
globset = "0.4.14"
|
|
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"] }
|
|
rand = "0.8.5"
|
|
regex = "1.10.4"
|
|
reqwest = { version = "0.11.27", features = ["json", "native-tls", "gzip", "multipart"] }
|
|
ring = { version = "0.17.8", features = ["std", "wasm32_unknown_unknown_js"] }
|
|
rust_decimal = "1.35"
|
|
rustc-hash = "1.1.0"
|
|
semver = { version = "1.0.22", features = ["serde"] }
|
|
serde = { version = "1.0.197", features = ["derive"] }
|
|
serde_json = "1.0.115"
|
|
serde_urlencoded = "0.7.1"
|
|
signal-hook = { version = "0.3.17", optional = true }
|
|
strum = { version = "0.26.2", features = ["derive"] }
|
|
thiserror = "1.0.58"
|
|
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std"] }
|
|
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"], optional = true }
|
|
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"] }
|
|
|
|
# First party crates
|
|
common_enums = { version = "0.1.0", path = "../common_enums" }
|
|
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"], optional = true, default-features = false }
|
|
|
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
|
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
fake = "2.9.2"
|
|
proptest = "1.4.0"
|
|
test-case = "3.3.1"
|
|
|
|
[lints]
|
|
workspace = true
|