# 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 = "l402kit"
version = "1.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "L402 (HTTP 402 + Lightning Network) middleware for Rust. Supports axum."
readme = "README.md"
keywords = [
    "lightning",
    "l402",
    "http402",
    "bitcoin",
    "middleware",
]
categories = [
    "web-programming",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/shinydapps/l402-kit"

[features]
axum-middleware = [
    "dep:axum",
    "dep:reqwest",
    "dep:http",
]
default = ["axum-middleware"]

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

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["axum-middleware"]

[[test]]
name = "core_test"
path = "tests/core_test.rs"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.hex]
version = "0.4"

[dependencies.http]
version = "1"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dev-dependencies.axum]
version = "0.8"

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

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
