restful 0.2.0

REST API helpers: validated Axum extractors, response envelopes, pagination, ordering, and field selection
# 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 = "restful"
version = "0.2.0"
authors = ["Musa Mahmoud Jingo <dev.musajingo@pm.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "REST API helpers: validated Axum extractors, response envelopes, pagination, ordering, and field selection"
readme = "README.md"
keywords = [
    "rest",
    "api",
    "axum",
    "pagination",
    "validation",
]
categories = ["web-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/musajingo/restful"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
axum = [
    "response",
    "dep:thiserror",
    "dep:valid8r",
    "dep:tracing",
    "dep:serde_path_to_error",
]
default = ["response"]
field-delta = ["dep:field-delta"]
full = [
    "response",
    "axum",
    "projection",
    "macros",
    "field-delta",
    "pgkit",
    "utoipa",
]
macros = ["dep:restful-macros"]
pgkit = ["dep:pgkit"]
projection = [
    "dep:thiserror",
    "dep:valid8r",
]
response = [
    "dep:axum",
    "dep:serde_json",
    "dep:strum",
]
utoipa = [
    "dep:utoipa",
    "field-delta?/utoipa",
]

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.field-delta]
version = "0.1.0"
optional = true

[dependencies.pgkit]
version = "0.4.0"
optional = true
default-features = false

[dependencies.restful-macros]
version = "=0.2.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"
features = ["std"]
optional = true
default-features = false

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

[dependencies.strum]
version = "0.28"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0"
optional = true

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

[dependencies.utoipa]
version = "5"
features = [
    "macros",
    "axum_extras",
]
optional = true
default-features = false

[dependencies.valid8r]
version = "0.2.2"
optional = true

[dev-dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false

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

[lints.rust]
unsafe_code = "forbid"