# 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.85"
name = "init4-bin-base"
version = "0.19.1"
authors = [
    "init4",
    "James Prestwich",
    "evalir",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internal utilities for binaries produced by the init4 team"
homepage = "https://github.com/init4tech/bin-base"
readme = "README.md"
keywords = [
    "init4",
    "bin",
    "base",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/init4tech/bin-base"

[features]
alloy = ["dep:alloy"]
aws = [
    "alloy",
    "alloy?/signer-aws",
    "dep:async-trait",
    "dep:aws-config",
    "dep:aws-sdk-kms",
]
block_watcher = ["dep:tokio"]
cold-sql = ["dep:signet-cold-sql"]
default = [
    "alloy",
    "rustls",
]
perms = [
    "dep:eyre",
    "dep:oauth2",
    "dep:tokio",
    "dep:reqwest",
    "dep:signet-tx-cache",
    "dep:futures-util",
]
pylon = [
    "perms",
    "alloy/kzg",
]
rustls = [
    "dep:rustls",
    "rustls/aws-lc-rs",
]
sse = [
    "perms",
    "signet-tx-cache/sse",
]

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

[[example]]
name = "ajj"
path = "examples/ajj.rs"

[[example]]
name = "build-helper"
path = "examples/build-helper.rs"

[[example]]
name = "oauth"
path = "examples/oauth.rs"
required-features = ["perms"]

[[example]]
name = "otlp-export"
path = "examples/otlp-export.rs"

[[example]]
name = "tx_cache"
path = "examples/tx_cache.rs"
required-features = ["perms"]

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

[[test]]
name = "tx-cache"
path = "tests/tx-cache.rs"

[dependencies.alloy]
version = "1.0.35"
features = [
    "std",
    "signer-local",
    "consensus",
    "network",
]
optional = true
default-features = false

[dependencies.async-trait]
version = "0.1.80"
optional = true

[dependencies.aws-config]
version = "1.1.7"
features = [
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.aws-sdk-kms]
version = "1.15.0"
features = [
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.axum]
version = "0.8.1"

[dependencies.chrono]
version = "0.4.40"

[dependencies.eyre]
version = "0.6.12"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.init4-from-env-derive]
version = "0.2.0"

[dependencies.metrics]
version = "0.24.1"

[dependencies.metrics-exporter-prometheus]
version = "0.18.0"

[dependencies.oauth2]
version = "5.0.0"
optional = true

[dependencies.opentelemetry]
version = "0.30.0"

[dependencies.opentelemetry-http]
version = "0.30.0"

[dependencies.opentelemetry-otlp]
version = "0.30.0"

[dependencies.opentelemetry-semantic-conventions]
version = "0.30.0"
features = ["semconv_experimental"]

[dependencies.opentelemetry_sdk]
version = "0.30.0"

[dependencies.reqwest]
version = "0.12.15"
optional = true

[dependencies.rustls]
version = "0.23.31"
optional = true

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

[dependencies.signet-cold-sql]
version = "0.7.1"
features = [
    "postgres",
    "sqlite",
]
optional = true
default-features = false

[dependencies.signet-constants]
version = "0.16.0"

[dependencies.signet-tx-cache]
version = "0.16.0"
optional = true

[dependencies.thiserror]
version = "2.0.11"

[dependencies.tokio]
version = "1.36.0"
optional = true

[dependencies.tower]
version = "0.5.2"

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-core]
version = "0.1.33"

[dependencies.tracing-opentelemetry]
version = "0.31.0"

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

[dependencies.url]
version = "2.5.4"

[dev-dependencies.ajj]
version = "0.7.0"
features = [
    "axum",
    "ws",
    "ipc",
]

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

[dev-dependencies.eyre]
version = "0.6.12"

[dev-dependencies.serial_test]
version = "3.2.0"

[dev-dependencies.signal-hook]
version = "0.4.1"

[dev-dependencies.tokio]
version = "1.43.0"
features = ["macros"]
