# 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.72" name = "actix-web" version = "4.9.0" authors = [ "Nikolay Kim ", "Rob Ede ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust" homepage = "https://actix.rs" readme = "README.md" keywords = [ "actix", "http", "web", "framework", "async", ] 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.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", ] [lib] name = "actix_web" path = "src/lib.rs" [[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" [[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" [[bench]] name = "responder" path = "benches/responder.rs" harness = false [[bench]] name = "server" path = "benches/server.rs" harness = false [[bench]] name = "service" path = "benches/service.rs" harness = false [dependencies.actix-codec] version = "0.5" [dependencies.actix-http] version = "3.7" features = ["ws"] [dependencies.actix-macros] version = "0.2.3" optional = true [dependencies.actix-router] version = "0.5.3" features = ["http"] default-features = false [dependencies.actix-rt] version = "2.6" default-features = false [dependencies.actix-server] version = "2" [dependencies.actix-service] version = "2" [dependencies.actix-tls] version = "3.4" optional = true default-features = false [dependencies.actix-utils] version = "3" [dependencies.actix-web-codegen] version = "4.3" optional = true default-features = false [dependencies.ahash] version = "0.8" [dependencies.bytes] version = "1" [dependencies.bytestring] version = "1" [dependencies.cfg-if] version = "1" [dependencies.cookie] version = "0.16" features = ["percent-encode"] optional = true [dependencies.derive_more] version = "0.99.8" [dependencies.encoding_rs] version = "0.8" [dependencies.futures-core] version = "0.3.17" default-features = false [dependencies.futures-util] version = "0.3.17" default-features = false [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] version = "1.5.5" optional = true [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] version = "0.3" features = ["formatting"] default-features = false [dependencies.url] version = "2.1" [dev-dependencies.actix-files] version = "0.6" [dev-dependencies.actix-test] version = "0.1" features = [ "openssl", "rustls-0_23", ] [dev-dependencies.awc] version = "3" features = ["openssl"] [dev-dependencies.brotli] version = "6" [dev-dependencies.const-str] version = "0.5" [dev-dependencies.core_affinity] version = "0.8" [dev-dependencies.criterion] version = "0.5" features = ["html_reports"] [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.flate2] version = "1.0.13" [dev-dependencies.futures-util] version = "0.3.17" features = ["std"] default-features = false [dev-dependencies.rand] version = "0.8" [dev-dependencies.rcgen] version = "0.13" [dev-dependencies.rustls-pemfile] version = "2" [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.static_assertions] version = "1" [dev-dependencies.tls-openssl] version = "0.10.55" package = "openssl" [dev-dependencies.tls-rustls] version = "0.23" package = "rustls" [dev-dependencies.tokio] version = "1.24.2" features = [ "rt-multi-thread", "macros", ] [dev-dependencies.zstd] version = "0.13" [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", ] [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