# 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.95"
name = "altair-server"
version = "0.1.6"
authors = ["Jasoet <jasoet87@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Axum + tower-http convenience layer with sensible defaults and graceful shutdown"
homepage = "https://github.com/jasoet/altair-rs"
readme = "README.md"
keywords = [
    "http",
    "server",
    "axum",
    "tower",
    "web",
]
categories = [
    "network-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/jasoet/altair-rs"

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
default-features = true

[dependencies.thiserror]
version = "2"

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

[dependencies.tower]
version = "0.5"

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

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.altair-otel]
version = "0.1"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.http]
version = "1"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]
default-features = true

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

[dev-dependencies.serde_json]
version = "1"

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

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
