[[bench]]
harness = false
name = "responder"
path = "benches/responder.rs"
[[bench]]
harness = false
name = "server"
path = "benches/server.rs"
[[bench]]
harness = false
name = "service"
path = "benches/service.rs"
[dependencies.actix-codec]
version = "0.5"
[dependencies.actix-http]
features = ["ws"]
version = "3.7"
[dependencies.actix-macros]
optional = true
version = "0.2.3"
[dependencies.actix-router]
default-features = false
features = ["http"]
version = "0.5.3"
[dependencies.actix-rt]
default-features = false
version = "2.6"
[dependencies.actix-server]
version = "2"
[dependencies.actix-service]
version = "2"
[dependencies.actix-tls]
default-features = false
optional = true
version = "3.4"
[dependencies.actix-utils]
version = "3"
[dependencies.actix-web-codegen]
default-features = false
optional = true
version = "4.3"
[dependencies.ahash]
version = "0.8"
[dependencies.bytes]
version = "1"
[dependencies.bytestring]
version = "1"
[dependencies.cfg-if]
version = "1"
[dependencies.cookie]
features = ["percent-encode"]
optional = true
version = "0.16"
[dependencies.derive_more]
version = "0.99.8"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.futures-core]
default-features = false
version = "0.3.17"
[dependencies.futures-util]
default-features = false
version = "0.3.17"
[dependencies.impl-more]
version = "0.1.4"
[dependencies.itoa]
version = "1"
[dependencies.language-tags]
version = "0.3"
[dependencies.log]
version = "0.4"
[dependencies.mime]
version = "0.3"
[dependencies.once_cell]
version = "1.5"
[dependencies.pin-project-lite]
version = "0.2.7"
[dependencies.regex]
optional = true
version = "1.5.5"
[dependencies.regex-lite]
version = "0.1"
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.smallvec]
version = "1.6.1"
[dependencies.socket2]
version = "0.5"
[dependencies.time]
default-features = false
features = ["formatting"]
version = "0.3"
[dependencies.url]
version = "2.1"
[dev-dependencies.actix-files]
version = "0.6"
[dev-dependencies.actix-test]
features = ["openssl", "rustls-0_23"]
version = "0.1"
[dev-dependencies.awc]
features = ["openssl"]
version = "3"
[dev-dependencies.brotli]
version = "6"
[dev-dependencies.const-str]
version = "0.5"
[dev-dependencies.core_affinity]
version = "0.8"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.flate2]
version = "1.0.13"
[dev-dependencies.futures-util]
default-features = false
features = ["std"]
version = "0.3.17"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.rcgen]
version = "0.13"
[dev-dependencies.rustls-pemfile]
version = "2"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tls-openssl]
package = "openssl"
version = "0.10.55"
[dev-dependencies.tls-rustls]
package = "rustls"
version = "0.23"
[dev-dependencies.tokio]
features = ["rt-multi-thread", "macros"]
version = "1.24.2"
[dev-dependencies.zstd]
version = "0.13"
[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = ["compress-gzip"]
[[example]]
name = "macroless"
path = "examples/macroless.rs"
[[example]]
name = "middleware_from_fn"
path = "examples/middleware_from_fn.rs"
[[example]]
name = "on-connect"
path = "examples/on-connect.rs"
required-features = []
[[example]]
name = "uds"
path = "examples/uds.rs"
required-features = ["compress-gzip"]
[[example]]
name = "worker-cpu-pin"
path = "examples/worker-cpu-pin.rs"
[features]
__compress = []
__tls = []
compat = ["compat-routing-macros-force-pub"]
compat-routing-macros-force-pub = ["actix-web-codegen?/compat-routing-macros-force-pub"]
compress-brotli = ["actix-http/compress-brotli", "__compress"]
compress-gzip = ["actix-http/compress-gzip", "__compress"]
compress-zstd = ["actix-http/compress-zstd", "__compress"]
cookies = ["dep:cookie"]
default = ["macros", "compress-brotli", "compress-gzip", "compress-zstd", "cookies", "http2", "unicode", "compat"]
experimental-io-uring = ["actix-server/io-uring"]
http2 = ["actix-http/http2"]
macros = ["dep:actix-macros", "dep:actix-web-codegen"]
openssl = ["__tls", "http2", "actix-http/openssl", "actix-tls/accept", "actix-tls/openssl"]
rustls = ["rustls-0_20"]
rustls-0_20 = ["__tls", "http2", "actix-http/rustls-0_20", "actix-tls/accept", "actix-tls/rustls-0_20"]
rustls-0_21 = ["__tls", "http2", "actix-http/rustls-0_21", "actix-tls/accept", "actix-tls/rustls-0_21"]
rustls-0_22 = ["__tls", "http2", "actix-http/rustls-0_22", "actix-tls/accept", "actix-tls/rustls-0_22"]
rustls-0_23 = ["__tls", "http2", "actix-http/rustls-0_23", "actix-tls/accept", "actix-tls/rustls-0_23"]
secure-cookies = ["cookies", "cookie/secure"]
unicode = ["dep:regex", "actix-router/unicode"]
[lib]
name = "actix_web"
path = "src/lib.rs"
[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
[package]
authors = ["Nikolay Kim <fafhrd91@gmail.com>", "Rob Ede <robjtede@icloud.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["network-programming", "asynchronous", "web-programming::http-server", "web-programming::websocket"]
description = "Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust"
edition = "2021"
homepage = "https://actix.rs"
keywords = ["actix", "http", "web", "framework", "async"]
license = "MIT OR Apache-2.0"
name = "actix-web"
readme = "README.md"
repository = "https://github.com/actix/actix-web"
rust-version = "1.72"
version = "4.9.0"
[package.metadata.cargo_check_external_types]
allowed_external_types = ["actix_http::*", "actix_router::*", "actix_rt::*", "actix_server::*", "actix_service::*", "actix_utils::*", "actix_web_codegen::*", "bytes::*", "cookie::*", "cookie", "futures_core::*", "http::*", "language_tags::*", "mime::*", "openssl::*", "rustls::*", "serde_json::*", "serde_urlencoded::*", "serde::*", "serde::*", "tokio::*", "url::*"]
[package.metadata.docs.rs]
features = ["macros", "openssl", "rustls-0_20", "rustls-0_21", "rustls-0_22", "rustls-0_23", "compress-brotli", "compress-gzip", "compress-zstd", "cookies", "secure-cookies"]
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "compression"
path = "tests/compression.rs"
required-features = ["compress-brotli", "compress-gzip", "compress-zstd"]
[[test]]
name = "test-macro-import-conflict"
path = "tests/test-macro-import-conflict.rs"
[[test]]
name = "test_error_propagation"
path = "tests/test_error_propagation.rs"
[[test]]
name = "test_httpserver"
path = "tests/test_httpserver.rs"
[[test]]
name = "test_server"
path = "tests/test_server.rs"
required-features = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
[[test]]
name = "test_weird_poll"
path = "tests/test_weird_poll.rs"
[[test]]
name = "utils"
path = "tests/utils.rs"
[[test]]
name = "weird_poll"
path = "tests/weird_poll.rs"