[package]
edition = "2024"
name = "payrix"
version = "0.3.0"
build = false
exclude = [
"tests/",
"TESTING.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for the Payrix payment processing API"
documentation = "https://docs.rs/payrix"
readme = "README.md"
keywords = [
"payrix",
"payments",
"api",
"worldpay",
"payment-processing",
]
categories = [
"api-bindings",
"web-programming",
]
license = "MIT"
repository = "https://github.com/outlawpractice/payrix-rs"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cache = [
"sqlx",
"dep:async-trait",
]
cli = [
"dep:clap",
"dep:tracing-subscriber",
"tokio/full",
]
default = []
financial = []
full = [
"financial",
"terminal",
]
sqlx = ["dep:sqlx"]
terminal = []
webhook-cli = [
"webhooks",
"dep:clap",
"dep:tracing-subscriber",
"tokio/full",
]
webhooks = [
"dep:axum",
"dep:tower",
"dep:tower-http",
"dep:ipnet",
"dep:async-trait",
]
[lib]
name = "payrix"
path = "src/lib.rs"
[[bin]]
name = "payrix"
path = "src/bin/payrix.rs"
required-features = ["cli"]
[[bin]]
name = "payrix-webhooks"
path = "src/bin/payrix-webhooks.rs"
required-features = ["webhook-cli"]
[[example]]
name = "webhook_dispute_handler"
path = "examples/webhook_dispute_handler.rs"
required-features = ["webhooks"]
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.payrix-macros]
version = "0.1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_repr]
version = "0.1"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"postgres",
"chrono",
]
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1"
features = [
"rt",
"time",
"sync",
]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.11"
features = [
"v4",
"serde",
]
[dev-dependencies.reqwest]
version = "0.12"
features = [
"json",
"multipart",
"rustls-tls",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.wiremock]
version = "0.6"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.async-trait]
version = "0.1"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.axum]
version = "0.7"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.ipnet]
version = "2.10"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.tower]
version = "0.5"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.tower-http]
version = "0.6"
features = ["trace"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.11"
features = [
"v4",
"serde",
"js",
]