mirror of
https://github.com/actix/actix-web.git
synced 2024-12-25 01:20:37 +00:00
131 lines
3.4 KiB
TOML
131 lines
3.4 KiB
TOML
[package]
|
|
name = "actix-http"
|
|
version = "3.3.1"
|
|
authors = [
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
"Rob Ede <robjtede@icloud.com>",
|
|
]
|
|
description = "HTTP primitives for the Actix ecosystem"
|
|
keywords = ["actix", "http", "framework", "async", "futures"]
|
|
homepage = "https://actix.rs"
|
|
repository = "https://github.com/actix/actix-web.git"
|
|
categories = [
|
|
"network-programming",
|
|
"asynchronous",
|
|
"web-programming::http-server",
|
|
"web-programming::websocket",
|
|
]
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[package.metadata.docs.rs]
|
|
# features that docs.rs will build with
|
|
features = ["http2", "ws", "openssl", "rustls", "compress-brotli", "compress-gzip", "compress-zstd"]
|
|
|
|
[lib]
|
|
name = "actix_http"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = []
|
|
|
|
# HTTP/2 protocol support
|
|
http2 = ["h2"]
|
|
|
|
# WebSocket protocol implementation
|
|
ws = [
|
|
"local-channel",
|
|
"base64",
|
|
"rand",
|
|
"sha1",
|
|
]
|
|
|
|
# TLS via OpenSSL
|
|
openssl = ["actix-tls/accept", "actix-tls/openssl"]
|
|
|
|
# TLS via Rustls
|
|
rustls = ["actix-tls/accept", "actix-tls/rustls"]
|
|
|
|
# Compression codecs
|
|
compress-brotli = ["__compress", "brotli"]
|
|
compress-gzip = ["__compress", "flate2"]
|
|
compress-zstd = ["__compress", "zstd"]
|
|
|
|
# Internal (PRIVATE!) features used to aid testing and cheking feature status.
|
|
# Don't rely on these whatsoever. They are semver-exempt and may disappear at anytime.
|
|
__compress = []
|
|
|
|
[dependencies]
|
|
actix-service = "2"
|
|
actix-codec = "0.5"
|
|
actix-utils = "3"
|
|
actix-rt = { version = "2.2", default-features = false }
|
|
|
|
ahash = "0.8"
|
|
bitflags = "1.2"
|
|
bytes = "1"
|
|
bytestring = "1"
|
|
derive_more = "0.99.5"
|
|
encoding_rs = "0.8"
|
|
futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] }
|
|
http = "0.2.7"
|
|
httparse = "1.5.1"
|
|
httpdate = "1.0.1"
|
|
itoa = "1"
|
|
language-tags = "0.3"
|
|
mime = "0.3.4"
|
|
percent-encoding = "2.1"
|
|
pin-project-lite = "0.2"
|
|
smallvec = "1.6.1"
|
|
tokio = { version = "1.24.2", features = [] }
|
|
tokio-util = { version = "0.7", features = ["io", "codec"] }
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
|
|
|
# http2
|
|
h2 = { version = "0.3.9", optional = true }
|
|
|
|
# websockets
|
|
local-channel = { version = "0.1", optional = true }
|
|
base64 = { version = "0.21", optional = true }
|
|
rand = { version = "0.8", optional = true }
|
|
sha1 = { version = "0.10", optional = true }
|
|
|
|
# openssl/rustls
|
|
actix-tls = { version = "3", default-features = false, optional = true }
|
|
|
|
# compress-*
|
|
brotli = { version = "3.3.3", optional = true }
|
|
flate2 = { version = "1.0.13", optional = true }
|
|
zstd = { version = "0.12", optional = true }
|
|
|
|
[dev-dependencies]
|
|
actix-http-test = { version = "3", features = ["openssl"] }
|
|
actix-server = "2"
|
|
actix-tls = { version = "3", features = ["openssl"] }
|
|
actix-web = "4"
|
|
|
|
async-stream = "0.3"
|
|
criterion = { version = "0.4", features = ["html_reports"] }
|
|
env_logger = "0.9"
|
|
futures-util = { version = "0.3.17", default-features = false, features = ["alloc"] }
|
|
memchr = "2.4"
|
|
once_cell = "1.9"
|
|
rcgen = "0.9"
|
|
regex = "1.3"
|
|
rustversion = "1"
|
|
rustls-pemfile = "1"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
static_assertions = "1"
|
|
tls-openssl = { package = "openssl", version = "0.10.9" }
|
|
tls-rustls = { package = "rustls", version = "0.20.0" }
|
|
tokio = { version = "1.24.2", features = ["net", "rt", "macros"] }
|
|
|
|
[[example]]
|
|
name = "ws"
|
|
required-features = ["ws", "rustls"]
|
|
|
|
[[bench]]
|
|
name = "response-body-compression"
|
|
harness = false
|
|
required-features = ["compress-brotli", "compress-gzip", "compress-zstd"]
|