1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 09:42:57 +01:00
actix-web/Cargo.toml

190 lines
5.0 KiB
TOML
Raw Normal View History

2017-09-30 18:10:03 +02:00
[package]
2017-10-14 16:59:35 +02:00
name = "actix-web"
version = "4.0.0-beta.21"
authors = [
"Nikolay Kim <fafhrd91@gmail.com>",
"Rob Ede <robjtede@icloud.com>",
]
description = "Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust"
2019-03-28 21:46:26 +01:00
keywords = ["actix", "http", "web", "framework", "async"]
2021-04-17 16:30:31 +02:00
categories = [
"network-programming",
"asynchronous",
"web-programming::http-server",
"web-programming::websocket"
]
2021-04-17 16:28:13 +02:00
homepage = "https://actix.rs"
2021-10-20 23:32:05 +02:00
repository = "https://github.com/actix/actix-web.git"
license = "MIT OR Apache-2.0"
2019-03-02 07:51:32 +01:00
edition = "2018"
[package.metadata.docs.rs]
2021-02-13 16:08:43 +01:00
# features that docs.rs will build with
features = ["openssl", "rustls", "compress-brotli", "compress-gzip", "compress-zstd", "cookies", "secure-cookies"]
rustdoc-args = ["--cfg", "docsrs"]
2017-10-16 22:16:54 +02:00
2017-09-30 18:10:03 +02:00
[lib]
2017-10-14 16:59:35 +02:00
name = "actix_web"
2017-09-30 18:10:03 +02:00
path = "src/lib.rs"
2019-03-02 08:59:44 +01:00
[workspace]
2021-08-31 03:52:29 +02:00
resolver = "2"
2019-03-02 08:59:44 +01:00
members = [
2021-04-17 16:30:31 +02:00
".",
"actix-files",
2022-01-03 15:59:01 +01:00
"actix-http-test",
"actix-http",
2021-04-17 16:30:31 +02:00
"actix-multipart",
2022-01-03 15:59:01 +01:00
"actix-router",
"actix-test",
2021-04-17 16:30:31 +02:00
"actix-web-actors",
"actix-web-codegen",
2022-01-03 15:59:01 +01:00
"awc",
2019-03-02 08:59:44 +01:00
]
2017-10-23 06:52:01 +02:00
[features]
default = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
2018-03-07 08:38:58 +01:00
# Brotli algorithm content-encoding support
compress-brotli = ["actix-http/compress-brotli", "__compress"]
# Gzip and deflate algorithms content-encoding support
compress-gzip = ["actix-http/compress-gzip", "__compress"]
# Zstd algorithm content-encoding support
compress-zstd = ["actix-http/compress-zstd", "__compress"]
2021-02-13 16:08:43 +01:00
# support for cookies
cookies = ["cookie"]
2021-02-13 16:08:43 +01:00
# secure cookies feature
secure-cookies = ["cookie/secure"]
2019-03-05 19:08:08 +01:00
2019-03-05 01:29:03 +01:00
# openssl
openssl = ["actix-http/openssl", "actix-tls/accept", "actix-tls/openssl"]
2019-03-05 01:29:03 +01:00
# rustls
rustls = ["actix-http/rustls", "actix-tls/accept", "actix-tls/rustls"]
2021-10-20 23:32:05 +02:00
# Internal (PRIVATE!) features used to aid testing and checking feature status.
# Don't rely on these whatsoever. They may disappear at anytime.
__compress = []
# io-uring feature only avaiable for Linux OSes.
experimental-io-uring = ["actix-server/io-uring"]
2017-09-30 18:10:03 +02:00
[dependencies]
2021-11-16 23:41:24 +01:00
actix-codec = "0.4.1"
2021-10-19 18:30:32 +02:00
actix-macros = "0.2.3"
2022-01-12 18:53:36 +01:00
actix-rt = "2.6"
2022-01-19 17:58:11 +01:00
actix-server = "2"
2021-04-16 21:28:21 +02:00
actix-service = "2.0.0"
2021-04-17 03:07:33 +02:00
actix-utils = "3.0.0"
actix-tls = { version = "3.0.0", default-features = false, optional = true }
2019-12-02 19:49:12 +01:00
2022-01-31 22:22:23 +01:00
actix-http = { version = "3.0.0-beta.19", features = ["http2", "ws"] }
actix-router = "0.5.0-rc.3"
actix-web-codegen = "0.5.0-rc.1"
2018-06-19 08:07:07 +02:00
2021-02-07 04:54:58 +01:00
ahash = "0.7"
bytes = "1"
cfg-if = "1"
cookie = { version = "0.16", features = ["percent-encode"], optional = true }
derive_more = "0.99.5"
encoding_rs = "0.8"
futures-core = { version = "0.3.7", default-features = false }
futures-util = { version = "0.3.7", default-features = false }
2021-12-22 09:34:48 +01:00
itoa = "1"
language-tags = "0.3"
once_cell = "1.5"
2018-01-28 07:03:03 +01:00
log = "0.4"
2017-10-19 08:43:50 +02:00
mime = "0.3"
2021-11-29 02:23:27 +01:00
pin-project-lite = "0.2.7"
regex = "1.4"
2020-09-11 13:09:52 +02:00
serde = { version = "1.0", features = ["derive"] }
2017-11-16 07:06:28 +01:00
serde_json = "1.0"
serde_urlencoded = "0.7"
smallvec = "1.6.1"
2021-03-19 13:17:06 +01:00
socket2 = "0.4.0"
time = { version = "0.3", default-features = false, features = ["formatting"] }
2021-02-13 16:08:43 +01:00
url = "2.1"
2019-03-02 07:51:32 +01:00
[dev-dependencies]
actix-files = "0.6.0-beta.15"
actix-test = { version = "0.1.0-beta.11", features = ["openssl", "rustls"] }
2022-01-21 21:25:46 +01:00
awc = { version = "3.0.0-beta.19", features = ["openssl"] }
2022-01-15 15:03:16 +01:00
brotli = "3.3.3"
2022-01-03 15:05:08 +01:00
const-str = "0.3"
2021-06-26 01:39:06 +02:00
criterion = { version = "0.3", features = ["html_reports"] }
2021-11-17 00:07:08 +01:00
env_logger = "0.9"
flate2 = "1.0.13"
futures-util = { version = "0.3.7", default-features = false, features = ["std"] }
rand = "0.8"
rcgen = "0.8"
rustls-pemfile = "0.2"
static_assertions = "1"
tls-openssl = { package = "openssl", version = "0.10.9" }
tls-rustls = { package = "rustls", version = "0.20.0" }
2021-11-17 00:22:29 +01:00
zstd = "0.9"
2017-10-26 15:12:23 +02:00
2021-09-08 18:42:14 +02:00
[profile.dev]
# Disabling debug info speeds up builds a bunch and we don't rely on it for debugging that much.
debug = 0
2017-09-30 18:10:03 +02:00
[profile.release]
lto = true
opt-level = 3
2018-02-15 22:59:25 +01:00
codegen-units = 1
2019-04-01 19:26:09 +02:00
2019-12-15 08:28:54 +01:00
[patch.crates-io]
actix-files = { path = "actix-files" }
2020-02-18 19:28:45 +01:00
actix-http = { path = "actix-http" }
2020-12-02 18:23:30 +01:00
actix-http-test = { path = "actix-http-test" }
actix-multipart = { path = "actix-multipart" }
2021-08-06 23:42:31 +02:00
actix-router = { path = "actix-router" }
actix-test = { path = "actix-test" }
actix-web = { path = "." }
2021-01-07 21:02:08 +01:00
actix-web-actors = { path = "actix-web-actors" }
2019-12-15 08:28:54 +01:00
actix-web-codegen = { path = "actix-web-codegen" }
2020-01-10 06:36:59 +01:00
awc = { path = "awc" }
2021-11-30 15:12:04 +01:00
# uncomment for quick testing against local actix-net repo
# actix-service = { path = "../actix-net/actix-service" }
# actix-macros = { path = "../actix-net/actix-macros" }
# actix-rt = { path = "../actix-net/actix-rt" }
# actix-codec = { path = "../actix-net/actix-codec" }
# actix-utils = { path = "../actix-net/actix-utils" }
# actix-tls = { path = "../actix-net/actix-tls" }
# actix-server = { path = "../actix-net/actix-server" }
[[test]]
name = "test_server"
required-features = ["compress-brotli", "compress-gzip", "compress-zstd", "cookies"]
[[test]]
name = "compression"
required-features = ["compress-brotli", "compress-gzip", "compress-zstd"]
[[example]]
name = "basic"
required-features = ["compress-gzip"]
[[example]]
name = "uds"
required-features = ["compress-gzip"]
[[example]]
2022-01-04 13:09:48 +01:00
name = "on-connect"
required-features = []
[[bench]]
name = "server"
harness = false
[[bench]]
name = "service"
harness = false
[[bench]]
name = "responder"
harness = false