# 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"
rust-version = "1.75"
name = "pr402-client"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight x402 v2 client library and CLI for buyer agents: discover, build, sign, settle."
readme = "README.md"
keywords = [
    "x402",
    "http-402",
    "solana",
    "payments",
    "cli",
]
categories = [
    "command-line-utilities",
    "web-programming::http-client",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/miralandlabs/pr402"

[lib]
name = "pr402_client"
path = "src/lib.rs"

[[bin]]
name = "pr402-buy"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.bincode]
version = "1.3"

[dependencies.clap]
version = "4.5"
features = ["derive"]

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.solana-sdk]
version = "^2.1"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
