# 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.75"
name = "axum-api-kit"
version = "1.2.0"
authors = ["Rod Mendoza <rodmendoza07@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared response types for Axum JSON APIs: ApiError, ListResponse, and HealthResponse"
homepage = "https://github.com/rodmen07/axum-api-kit"
documentation = "https://docs.rs/axum-api-kit"
readme = "README.md"
keywords = [
    "axum",
    "api",
    "rest",
    "response",
    "http",
]
categories = [
    "web-programming::http-server",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/rodmen07/axum-api-kit"

[package.metadata.docs.rs]
all-features = true

[features]
cors = ["dep:tower-http"]
default = []
extract = ["axum/query"]
openapi = ["dep:utoipa"]
router = []
sqlx = ["dep:sqlx"]
trace = [
    "dep:tracing",
    "dep:uuid",
]
validator = [
    "dep:validator",
    "validator/derive",
]

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

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

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

[dependencies.http]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
optional = true
default-features = false

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.utoipa]
version = "5"
optional = true

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

[dependencies.validator]
version = "0.18"
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

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