sword-layers 0.3.0

Tower layers for the Sword web framework
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"
name = "sword-layers"
version = "0.3.0"
authors = ["luciano revillod <lrevillod2022@alu.uct.cl>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower layers for the Sword web framework"
homepage = "https://github.com/sword-web"
documentation = "https://docs.rs/sword-layers"
readme = "README.md"
keywords = [
    "sword",
    "web",
    "framework",
    "axum",
    "tower",
]
categories = [
    "web-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/sword-web/sword-layers"
resolver = "2"

[features]
body-limit = [
    "dep:axum_responses",
    "dep:byte-unit",
    "dep:tracing",
    "dep:tower-http",
    "tower-http/limit",
]
compression = [
    "dep:tower-http",
    "dep:tracing",
    "tower-http/compression-full",
]
cookies = ["dep:tower-cookies"]
cors = [
    "dep:tower-http",
    "dep:tracing",
    "tower-http/cors",
]
default = []
helmet = ["dep:axum-helmet"]
not-found = ["dep:axum_responses"]
req-timeout = [
    "dep:axum_responses",
    "dep:tracing",
    "dep:tower-http",
    "tower-http/timeout",
]
request-id = [
    "dep:tower-http",
    "dep:uuid",
    "tower-http/request-id",
]
servedir = [
    "dep:tower-http",
    "dep:tracing",
    "tower-http/fs",
]
tracing = [
    "dep:tracing",
    "dep:tracing-subscriber",
]

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

[dependencies.axum]
version = "0.8.7"

[dependencies.axum-helmet]
version = "0.2.0"
optional = true

[dependencies.axum_responses]
version = "0.5.5"
optional = true

[dependencies.byte-unit]
version = "5.2.0"
optional = true

[dependencies.inventory]
version = "0.3.21"

[dependencies.serde]
version = "1.0.219"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1.0.140"

[dependencies.sword-core]
version = "0.3.0"

[dependencies.thisconfig]
version = "0.3.0"
features = [
    "byte-unit",
    "time-unit",
    "byte-unit",
    "time-unit",
]

[dependencies.tower]
version = "0.5.2"

[dependencies.tower-cookies]
version = "0.11.0"
features = [
    "private",
    "signed",
]
optional = true

[dependencies.tower-http]
version = "0.6.6"
optional = true

[dependencies.tower-layer]
version = "0.3.3"

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

[dependencies.tracing-subscriber]
version = "0.3.19"
features = [
    "env-filter",
    "fmt",
    "json",
    "chrono",
]
optional = true

[dependencies.uuid]
version = "1.18.0"
features = [
    "v4",
    "serde",
    "v4",
]
optional = true