# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "pay-gate"
version = "0.1.7"
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "pay-gate.example.yaml",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "x402 payment gateway — reverse proxy with Pay facilitator"
homepage = "https://pay-skill.com/docs/gate/"
readme = false
keywords = [
    "x402",
    "payment",
    "gateway",
    "proxy",
    "usdc",
]
categories = [
    "web-programming::http-server",
    "command-line-utilities",
]
license-file = "LICENSE"
repository = "https://github.com/pay-skill/gate"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-{ target-family }-{ target-arch }{ binary-ext }"
pkg-fmt = "bin"

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-linux-amd64"

[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-linux-arm64"

[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-macos-amd64"

[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-macos-arm64"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/pay-gate-windows-amd64.exe"

[[bin]]
name = "pay-gate"
path = "src/main.rs"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.globset]
version = "0.4"

[dependencies.governor]
version = "0.10"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1"
features = ["full"]

[dependencies.hyper-util]
version = "0.1"
features = ["full"]

[dependencies.nonzero_ext]
version = "0.3"

[dependencies.reqwest]
version = "0.13"
features = ["json"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "json",
    "env-filter",
]

[profile.release]
lto = true
codegen-units = 1
strip = true
