# 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 = "2021"
rust-version = "1.88"
name = "actix-http"
version = "3.13.1"
authors = [
    "Nikolay Kim <fafhrd91@gmail.com>",
    "Rob Ede <robjtede@icloud.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP types and services for the Actix ecosystem"
homepage = "https://actix.rs"
readme = "README.md"
keywords = [
    "actix",
    "http",
    "framework",
    "async",
    "futures",
]
categories = [
    "network-programming",
    "asynchronous",
    "web-programming::http-server",
    "web-programming::websocket",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/actix/actix-web"

[package.metadata.docs.rs]
features = [
    "http2",
    "ws",
    "openssl",
    "rustls-0_20",
    "rustls-0_21",
    "rustls-0_22",
    "rustls-0_23",
    "compress-brotli",
    "compress-gzip",
    "compress-zstd",
]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
    "actix_codec::*",
    "actix_service::*",
    "actix_tls::*",
    "actix_utils::*",
    "bytes::*",
    "bytestring::*",
    "encoding_rs::*",
    "futures_core::*",
    "h2::*",
    "http::*",
    "httparse::*",
    "language_tags::*",
    "mime::*",
    "openssl::*",
    "rustls::*",
    "tokio_util::*",
    "tokio::*",
]

[features]
__compress = []
__tls = []
compress-brotli = [
    "__compress",
    "dep:brotli",
]
compress-gzip = [
    "__compress",
    "dep:flate2",
]
compress-zstd = [
    "__compress",
    "dep:zstd",
]
default = []
http2 = ["dep:h2"]
openssl = [
    "__tls",
    "actix-tls/accept",
    "actix-tls/openssl",
]
rustls = [
    "__tls",
    "rustls-0_20",
]
rustls-0_20 = [
    "__tls",
    "actix-tls/accept",
    "actix-tls/rustls-0_20",
]
rustls-0_21 = [
    "__tls",
    "actix-tls/accept",
    "actix-tls/rustls-0_21",
]
rustls-0_22 = [
    "__tls",
    "actix-tls/accept",
    "actix-tls/rustls-0_22",
]
rustls-0_23 = [
    "__tls",
    "actix-tls/accept",
    "actix-tls/rustls-0_23",
]
ws = [
    "dep:local-channel",
    "dep:base64",
    "dep:rand",
    "dep:sha1",
]

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

[[example]]
name = "actix-web"
path = "examples/actix-web.rs"

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

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

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

[[example]]
name = "h2c-detect"
path = "examples/h2c-detect.rs"

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

[[example]]
name = "hello-world"
path = "examples/hello-world.rs"

[[example]]
name = "streaming-error"
path = "examples/streaming-error.rs"

[[example]]
name = "tls_rustls"
path = "examples/tls_rustls.rs"
required-features = [
    "http2",
    "rustls-0_23",
]

[[example]]
name = "ws"
path = "examples/ws.rs"
required-features = [
    "ws",
    "rustls-0_23",
]

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

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

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

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

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

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

[[bench]]
name = "date-formatting"
path = "benches/date-formatting.rs"
harness = false

[[bench]]
name = "response-body-compression"
path = "benches/response-body-compression.rs"
harness = false
required-features = [
    "compress-brotli",
    "compress-gzip",
    "compress-zstd",
]

[dependencies.actix-codec]
version = "0.5"

[dependencies.actix-rt]
version = "2.2"
default-features = false

[dependencies.actix-service]
version = "2"

[dependencies.actix-tls]
version = "3.4"
optional = true
default-features = false

[dependencies.actix-utils]
version = "3"

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

[dependencies.bitflags]
version = "2"

[dependencies.brotli]
version = "8"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.bytestring]
version = "1"

[dependencies.derive_more]
version = "2"
features = [
    "as_ref",
    "deref",
    "deref_mut",
    "display",
    "error",
    "from",
]

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flate2]
version = "1.0.13"
optional = true

[dependencies.foldhash]
version = "0.2"

[dependencies.futures-core]
version = "0.3.17"
features = ["alloc"]
default-features = false

[dependencies.h2]
version = "0.3.27"
optional = true

[dependencies.http]
version = "0.2.7"

[dependencies.httparse]
version = "1.5.1"

[dependencies.httpdate]
version = "1.0.1"

[dependencies.itoa]
version = "1"

[dependencies.language-tags]
version = "0.3"

[dependencies.local-channel]
version = "0.1"
optional = true

[dependencies.mime]
version = "0.3.4"

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

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rand]
version = "0.10.1"
optional = true

[dependencies.sha1]
version = "0.11"
optional = true

[dependencies.smallvec]
version = "1.6.1"

[dependencies.tokio]
version = "1.38.2"
features = []

[dependencies.tokio-util]
version = "0.7"
features = [
    "io",
    "codec",
]

[dependencies.tracing]
version = "0.1.30"
features = ["log"]
default-features = false

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.actix-http-test]
version = "3"
features = ["openssl"]

[dev-dependencies.actix-server]
version = "2"

[dev-dependencies.actix-tls]
version = "3.4"
features = [
    "openssl",
    "rustls-0_23-webpki-roots",
]

[dev-dependencies.actix-web]
version = "4"

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

[dev-dependencies.awc]
version = "3"
features = ["openssl"]
default-features = false

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.divan]
version = "0.1.8"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.futures-util]
version = "0.3.17"
features = ["alloc"]
default-features = false

[dev-dependencies.memchr]
version = "2.4"

[dev-dependencies.once_cell]
version = "1.21"

[dev-dependencies.rcgen]
version = "0.14"

[dev-dependencies.regex]
version = "1.3"

[dev-dependencies.rustls-pki-types]
version = "1.13.1"

[dev-dependencies.rustversion]
version = "1"

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

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.static_assertions]
version = "1"

[dev-dependencies.tls-openssl]
version = "0.10.55"
package = "openssl"

[dev-dependencies.tls-rustls_023]
version = "0.23"
package = "rustls"

[dev-dependencies.tokio]
version = "1.38.2"
features = [
    "net",
    "rt",
    "macros",
    "sync",
]

[lints.clippy]

[lints.rust.future_incompatible]
level = "deny"
priority = 0

[lints.rust.nonstandard_style]
level = "deny"
priority = 0

[lints.rust.rust_2018_idioms]
level = "deny"
priority = 0
