# 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"
name = "cinderblock-json-api"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JSON REST API extension for cinderblock with Axum router, auto-registered endpoints, and OpenAPI support"
readme = "README.md"
keywords = [
    "framework",
    "crud",
    "resource",
    "declarative",
    "code-generation",
]
categories = ["web-programming"]
license = "Apache-2.0"
repository = "https://github.com/nils-degroot/cinderblock"

[features]
swagger-ui = ["dep:utoipa-swagger-ui"]

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

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

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

[dependencies.axum]
version = "0.8"

[dependencies.cinderblock-core]
version = "0.5.0"

[dependencies.cinderblock-json-api-macros]
version = "0.5.0"

[dependencies.inventory]
version = "0.3"

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

[dependencies.serde_json]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5.4.0"
features = ["uuid"]

[dependencies.utoipa-swagger-ui]
version = "9.0.2"
features = [
    "axum",
    "vendored",
]
optional = true

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

[dev-dependencies.assert2]
version = "0.3"

[dev-dependencies.http-body-util]
version = "0.1"

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

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

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

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

[dev-dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]
