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

1.6 KB
Raw Blame
[package]
name = "diesel_models"
description = "Database types 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 = ["kv_store"]
kv_store = []
v1 = ["common_utils/v1", "common_types/v1"]
v2 = ["common_utils/v2", "common_types/v2", "common_enums/v2"]
tokenization_v2 = []
deja = ["dep:deja", "deja/diesel-pg"]

[dependencies]
tracing = { workspace = true }
async-bb8-diesel = "0.3.0"
base64 = "0.22.1"
bb8 = "0.9.1"
diesel = { version = "2.3.12", features = ["postgres", "serde_json", "time", "128-column-tables", "i-implement-a-third-party-backend-and-opt-into-breaking-changes"] }
error-stack = "0.4.1"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
strum = { version = "0.26.3", features = ["derive"] }
thiserror = "1.0.69"
time = { version = "0.3.41", features = ["serde", "serde-well-known", "std"] }

# First party crates
common_enums = { version = "0.1.0", path = "../common_enums", features = ["diesel"] }
common_utils = { version = "0.1.0", path = "../common_utils", features = ["diesel"] }
common_types = { version = "0.1.0", path = "../common_types", features = ["diesel"] }
hyperswitch_masking = "0.0.1"
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"] }
deja = { git = "https://github.com/juspay/deja", rev = "3fe15f88537c4bf4375504de4582217ba4e2d8e0", optional = true, default-features = false, features = ["error-stack"] }

[lints]
workspace = true