# 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 = "maw"
version = "0.29.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple and efficient web framework for Rust."
readme = "README.md"
license = "MIT"
repository = "https://github.com/Srlion/maw"

[features]
default = []
full = [
    "middleware",
    "minijinja",
    "static_files",
    "websocket",
    "xml",
]
listenfd = ["dep:listenfd"]
middleware = [
    "middleware-body_limit",
    "middleware-catch_panic",
    "middleware-cookie",
    "middleware-csrf",
    "middleware-logging",
    "middleware-session",
]
middleware-body_limit = []
middleware-catch_panic = ["dep:pin-project-lite"]
middleware-cookie = [
    "dep:base64",
    "dep:cookie",
    "dep:postcard",
]
middleware-csrf = [
    "dep:constant_time_eq",
    "dep:rand",
    "middleware-cookie",
]
middleware-logging = []
middleware-session = [
    "dep:rand",
    "middleware-cookie",
    "serde/derive",
]
minijinja = [
    "dep:erased-serde",
    "dep:minijinja",
]
static_files = [
    "dep:httpdate",
    "dep:rust-embed",
]
static_files_debug_embed = ["rust-embed?/debug-embed"]
websocket = ["dep:hyper-tungstenite"]
xml = ["dep:quick-xml"]

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

[[example]]
name = "cookie_session"
path = "examples/cookie_session.rs"
required-features = ["middleware-session"]

[[example]]
name = "groups"
path = "examples/groups.rs"
required-features = ["middleware-logging"]

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

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

[[example]]
name = "redis_session"
path = "examples/redis_session.rs"
required-features = ["middleware-session"]

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

[[example]]
name = "static_files"
path = "examples/static_files.rs"
required-features = ["static_files"]

[[example]]
name = "templates"
path = "examples/templates.rs"
required-features = ["minijinja"]

[[example]]
name = "websocket"
path = "examples/websocket.rs"
required-features = ["websocket"]

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.bytes]
version = "1.11.1"

[dependencies.constant_time_eq]
version = "0.4.2"
optional = true

[dependencies.cookie]
version = "0.18.1"
features = [
    "private",
    "signed",
]
optional = true

[dependencies.erased-serde]
version = "0.4.10"
optional = true

[dependencies.futures-util]
version = "0.3.31"
default-features = false

[dependencies.http]
version = "1.4.0"

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

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

[dependencies.httpdate]
version = "1.0.3"
optional = true

[dependencies.hyper]
version = "1.9.0"
features = []

[dependencies.hyper-tungstenite]
version = "0.19.0"
optional = true

[dependencies.hyper-util]
version = "0.1.20"
features = [
    "http1",
    "server",
    "server-auto",
    "server-graceful",
]

[dependencies.listenfd]
version = "1.0.2"
optional = true

[dependencies.matchit]
version = "0.9.2"

[dependencies.mime_guess]
version = "2.0.5"

[dependencies.minijinja]
version = "2.19.0"
features = [
    "builtins",
    "json",
    "loader",
]
optional = true

[dependencies.multer]
version = "3.1.0"

[dependencies.paste]
version = "1.0.15"

[dependencies.pin-project-lite]
version = "0.2.17"
optional = true

[dependencies.postcard]
version = "1.1.3"
features = ["use-std"]
optional = true

[dependencies.quick-xml]
version = "0.39.2"
features = ["serialize"]
optional = true

[dependencies.rand]
version = "0.10.1"
features = ["thread_rng"]
optional = true
default-features = false

[dependencies.rust-embed]
version = "8.11.0"
features = ["interpolate-folder-path"]
optional = true

[dependencies.serde]
version = "1.0.228"
features = []

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_plain]
version = "1.0.2"

[dependencies.serde_urlencoded]
version = "0.7.1"

[dependencies.smol_str]
version = "0.3.6"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.51.1"
features = [
    "fs",
    "net",
    "signal",
]

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false

[dev-dependencies.async-stream]
version = "0.3.6"

[dev-dependencies.redis]
version = "1.0"
features = ["tokio-comp"]

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

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

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