[package]
edition = "2024"
rust-version = "1.88.0"
name = "x402-types"
version = "1.1.1"
authors = ["Sergey Ukustov <sergey@ukstv.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types for x402 payments: chain identifiers, protocol messages, and facilitator traits"
homepage = "https://x402.rs"
documentation = "https://docs.rs/x402-types"
readme = "README.md"
keywords = [
"blockchain",
"payments",
"x402",
"stablecoin",
"http-402",
]
categories = [
"cryptography::cryptocurrencies",
"finance",
"network-programming",
"web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/x402-rs/x402-rs"
[package.metadata.docs.rs]
all-features = true
[features]
cli = ["dep:clap"]
default = []
full = [
"cli",
"telemetry",
]
telemetry = ["dep:tracing"]
[lib]
name = "x402_types"
path = "src/lib.rs"
[dependencies.alloy-primitives]
version = "1.4.1"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22.1"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
optional = true
[dependencies.regex]
version = "1.12.2"
[dependencies.rust_decimal]
version = "1.39.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["raw_value"]
[dependencies.serde_with]
version = "3.16.1"
[dependencies.thiserror]
version = "2.0"
[dependencies.tracing]
version = "0.1"
optional = true