# 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 = "2024"
rust-version = "1.85"
name = "axum-bootstrap"
version = "0.1.18"
authors = ["arloor <admin@arloor.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "a way to bootstrap a web server with axum, including TLS, logging, monitoring, and more."
readme = "README.md"
keywords = [
    "axum",
    "http-server",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arloor/axum-bootstrap"

[features]
default = ["use_tracing_subscriber"]
mysql = []
use_env_logger = ["dep:env_logger"]
use_flexi_logger = ["dep:flexi_logger"]
use_tracing_subscriber = [
    "dep:tracing-subscriber",
    "dep:time",
]

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"

[dependencies.chrono]
version = "0.4"

[dependencies.env_logger]
version = "0.11"
optional = true

[dependencies.flexi_logger]
version = "0.31"
optional = true

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

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

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "server-auto",
    "server-graceful",
]

[dependencies.log]
version = "0.4"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rustls-pemfile]
version = "2.2.0"

[dependencies.rustls-pki-types]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.socket2]
version = "0.6"

[dependencies.time]
version = "0.3"
features = ["macros"]
optional = true

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

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "logging",
    "tls12",
]
default-features = false

[dependencies.tower]
version = "0.5"

[dependencies.tower-service]
version = "0.3"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "local-time",
]
optional = true

[dev-dependencies.axum-macros]
version = "0.5"

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

[dev-dependencies.prometheus-client]
version = "0.24"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "charset",
    "rustls-tls",
    "http2",
    "macos-system-configuration",
    "stream",
]
default-features = false

[dev-dependencies.serde_yaml]
version = "0.9"

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "mysql",
    "runtime-tokio-rustls",
    "chrono",
]

[dev-dependencies.sqlx-mysql]
version = "0.8"

[dev-dependencies.tower-http]
version = "0.6"
features = [
    "compression-full",
    "cors",
    "timeout",
    "trace",
]
