jsonapi_axum 1.0.0-rc.1

axum adapter for jsonapi_core: JSON:API extractors, responders, and tower layers built on jsonapi_http
Documentation
# 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.94.1"
name = "jsonapi_axum"
version = "1.0.0-rc.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "axum adapter for jsonapi_core: JSON:API extractors, responders, and tower layers built on jsonapi_http"
documentation = "https://docs.rs/jsonapi_axum"
readme = "README.md"
keywords = [
    "jsonapi",
    "json-api",
    "axum",
    "web",
    "rest",
]
categories = ["web-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rankitbishnoi/jsonapi_core"
resolver = "2"

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

[features]
anyhow = ["dep:anyhow"]
atomic-ops = ["jsonapi_core/atomic-ops"]
debug-errors = []
sqlx = ["dep:sqlx"]
testing = ["tower/util"]
uuid = ["dep:uuid"]
validator = ["dep:validator"]

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"
optional = true

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

[dependencies.bytes]
version = "1"

[dependencies.http]
version = "1"

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

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

[dependencies.jsonapi_core]
version = "1.0.0-rc.1"

[dependencies.jsonapi_http]
version = "1.0.0-rc.1"

[dependencies.percent-encoding]
version = "2"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tower]
version = "0.5"
default-features = false

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

[dependencies.validator]
version = "0.20"
optional = true
default-features = false

[dev-dependencies.axum]
version = "0.8"
features = [
    "tokio",
    "http1",
]

[dev-dependencies.pollster]
version = "0.4"

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

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

[dev-dependencies.tower-http]
version = "0.6"
features = ["request-id"]

[lints.rust]
unsafe_code = "forbid"