# 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.75" name = "ntex" version = "2.10.0" authors = ["ntex contributors "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Framework for composable network services" documentation = "https://docs.rs/ntex/" readme = "README.md" keywords = [ "ntex", "networking", "framework", "async", "futures", ] categories = [ "network-programming", "asynchronous", "web-programming::http-server", "web-programming::websocket", ] license = "MIT OR Apache-2.0" repository = "https://github.com/ntex-rs/ntex" [package.metadata.docs.rs] features = [ "tokio", "openssl", "rustls", "compress", "cookie", "ws", "brotli", "ntex-tls/rustls-ring", ] [lib] name = "ntex" path = "src/lib.rs" [[example]] name = "basic" path = "examples/basic.rs" [[example]] name = "client" path = "examples/client.rs" [[example]] name = "echo" path = "examples/echo.rs" [[example]] name = "echo2" path = "examples/echo2.rs" [[example]] name = "hello-world" path = "examples/hello-world.rs" [[example]] name = "uds" path = "examples/uds.rs" [[test]] name = "connect" path = "tests/connect.rs" [[test]] name = "http_awc_client" path = "tests/http_awc_client.rs" [[test]] name = "http_awc_openssl_client" path = "tests/http_awc_openssl_client.rs" [[test]] name = "http_awc_rustls_client" path = "tests/http_awc_rustls_client.rs" [[test]] name = "http_client" path = "tests/http_client.rs" [[test]] name = "http_openssl" path = "tests/http_openssl.rs" [[test]] name = "http_server" path = "tests/http_server.rs" [[test]] name = "http_ws" path = "tests/http_ws.rs" [[test]] name = "http_ws_client" path = "tests/http_ws_client.rs" [[test]] name = "rustls_utils" path = "tests/rustls_utils.rs" [[test]] name = "server" path = "tests/server.rs" [[test]] name = "web_httpserver" path = "tests/web_httpserver.rs" [[test]] name = "web_server" path = "tests/web_server.rs" [[test]] name = "web_ws" path = "tests/web_ws.rs" [dependencies.base64] version = "0.22" [dependencies.bitflags] version = "2" [dependencies.brotli2] version = "0.3.2" optional = true [dependencies.bytes] version = "1" [dependencies.coo-kie] version = "0.18" optional = true package = "cookie" [dependencies.encoding_rs] version = "0.8" [dependencies.flate2] version = "1.0" optional = true [dependencies.httparse] version = "1.9" [dependencies.httpdate] version = "1.0" [dependencies.log] version = "0.4" [dependencies.mime] version = "0.3" [dependencies.nanorand] version = "0.7" features = [ "std", "wyrand", ] default-features = false [dependencies.ntex-bytes] version = "0.1.27" [dependencies.ntex-codec] version = "0.6" [dependencies.ntex-h2] version = "1.4" [dependencies.ntex-http] version = "0.1.13" [dependencies.ntex-io] version = "2.9" [dependencies.ntex-macros] version = "0.1" [dependencies.ntex-net] version = "2.4" [dependencies.ntex-router] version = "0.5" [dependencies.ntex-rt] version = "0.4.22" [dependencies.ntex-server] version = "2.6" [dependencies.ntex-service] version = "3.4" [dependencies.ntex-tls] version = "2.3" [dependencies.ntex-util] version = "2.8" [dependencies.percent-encoding] version = "2.3" [dependencies.pin-project-lite] version = "0.2" [dependencies.regex] version = "1.11" features = ["std"] default-features = false [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_urlencoded] version = "0.7" [dependencies.sha-1] version = "0.10" optional = true [dependencies.thiserror] version = "1" [dependencies.tls-openssl] version = "0.10" optional = true package = "openssl" [dependencies.tls-rustls] version = "0.23" optional = true default-features = false package = "rustls" [dependencies.url-pkg] version = "2.5" optional = true package = "url" [dependencies.webpki-roots] version = "0.26" optional = true [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.futures-util] version = "0.3" [dev-dependencies.rand] version = "0.8" [dev-dependencies.rustls-pemfile] version = "2" [dev-dependencies.time] version = "0.3" [dev-dependencies.tls-openssl] version = "0.10" package = "openssl" [dev-dependencies.tls-rustls] version = "0.23" features = [ "ring", "std", ] default-features = false package = "rustls" [dev-dependencies.webpki-roots] version = "0.26" [features] async-std = ["ntex-net/async-std"] brotli = ["dep:brotli2"] compio = ["ntex-net/compio"] compress = ["flate2"] cookie = [ "coo-kie", "coo-kie/percent-encode", ] default = ["ws"] glommio = ["ntex-net/glommio"] openssl = [ "tls-openssl", "ntex-tls/openssl", ] rustls = [ "tls-rustls", "webpki-roots", "ntex-tls/rustls", ] tokio = ["ntex-net/tokio"] url = ["url-pkg"] ws = ["dep:sha-1"]