switchy_web_server 0.2.0

Switchy Web Server package
# 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 = "switchy_web_server"
version = "0.2.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Switchy Web Server package"
readme = "README.md"
keywords = [
    "async",
    "http",
    "network",
    "web",
]
categories = [
    "development-tools",
    "network-programming",
]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"

[package.metadata]
examples = true

[package.metadata.workspaces]
group = "switchy"

[features]
actix = [
    "dep:actix-http",
    "dep:actix-service",
    "dep:actix-test",
    "dep:actix-web",
    "switchy_http_models/actix",
]
compress = []
cors = [
    "dep:actix-cors",
    "dep:switchy_web_server_cors",
]
default = [
    "actix",
    "compress",
    "cors",
    "htmx",
    "openapi-all",
    "serde",
    "tls",
]
fail-on-warnings = [
    "moosicbox_assert/fail-on-warnings",
    "switchy_fs?/fail-on-warnings",
    "switchy_http_models/fail-on-warnings",
    "switchy_web_server_core/fail-on-warnings",
    "switchy_web_server_cors?/fail-on-warnings",
]
htmx = ["dep:actix-htmx"]
openapi = ["dep:utoipa"]
openapi-all = [
    "openapi-rapidoc",
    "openapi-redoc",
    "openapi-scalar",
    "openapi-swagger-ui",
]
openapi-rapidoc = [
    "dep:const_format",
    "dep:utoipa-rapidoc",
    "openapi",
]
openapi-redoc = [
    "dep:utoipa-redoc",
    "openapi",
]
openapi-scalar = [
    "dep:utoipa-scalar",
    "openapi",
]
openapi-swagger-ui = [
    "dep:const_format",
    "dep:utoipa-swagger-ui",
    "openapi",
]
serde = [
    "dep:serde_json",
    "switchy_http_models/serde",
]
simulator = [
    "dep:switchy_fs",
    "switchy_fs?/simulator",
    "switchy_fs?/tokio",
]
static-files = ["dep:actix-files"]
tls = ["actix-web?/openssl"]

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

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

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

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

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

[dependencies.actix-cors]
version = "0.7.1"
optional = true

[dependencies.actix-files]
version = "0.6.10"
optional = true

[dependencies.actix-htmx]
version = "0.4.1"
optional = true

[dependencies.actix-http]
version = "3.12.1"
optional = true

[dependencies.actix-service]
version = "2.0.3"
optional = true

[dependencies.actix-test]
version = "0.1.5"
optional = true

[dependencies.actix-web]
version = "4.13.0"
optional = true

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "1.11.1"

[dependencies.const_format]
version = "0.2.36"
optional = true

[dependencies.futures]
version = "0.3.32"

[dependencies.log]
version = "0.4.29"
features = ["release_max_level_trace"]

[dependencies.moosicbox_assert]
version = "0.2.0"
default-features = false

[dependencies.paste]
version = "1.0.15"

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

[dependencies.serde-querystring]
version = "0.3.0"

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.switchy_fs]
version = "0.2.0"
optional = true
default-features = false

[dependencies.switchy_http_models]
version = "0.2.0"
default-features = false

[dependencies.switchy_web_server_core]
version = "0.2.0"
default-features = false

[dependencies.switchy_web_server_cors]
version = "0.2.0"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.urlencoding]
version = "2.1.3"

[dependencies.utoipa]
version = "5.5.0"
features = ["actix_extras"]
optional = true

[dependencies.utoipa-rapidoc]
version = "6.0.0"
features = ["actix-web"]
optional = true

[dependencies.utoipa-redoc]
version = "6.0.0"
features = ["actix-web"]
optional = true

[dependencies.utoipa-scalar]
version = "0.3.0"
features = ["actix-web"]
optional = true

[dependencies.utoipa-swagger-ui]
version = "9.0.2"
features = ["actix-web"]
optional = true