222 lines
3.7 KiB
TOML
222 lines
3.7 KiB
TOML
# 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 = "2018"
|
|
name = "warp"
|
|
version = "0.3.7"
|
|
authors = ["Sean McArthur <sean@seanmonstar.com>"]
|
|
autoexamples = true
|
|
autotests = true
|
|
description = "serve the web at warp speeds"
|
|
documentation = "https://docs.rs/warp"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"warp",
|
|
"server",
|
|
"http",
|
|
"hyper",
|
|
]
|
|
categories = ["web-programming::http-server"]
|
|
license = "MIT"
|
|
repository = "https://github.com/seanmonstar/warp"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[profile.bench]
|
|
codegen-units = 1
|
|
incremental = false
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
incremental = false
|
|
|
|
[[example]]
|
|
name = "compression"
|
|
required-features = ["compression"]
|
|
|
|
[[example]]
|
|
name = "unix_socket"
|
|
|
|
[[example]]
|
|
name = "websockets"
|
|
required-features = ["websocket"]
|
|
|
|
[[example]]
|
|
name = "websockets_chat"
|
|
required-features = ["websocket"]
|
|
|
|
[[example]]
|
|
name = "query_string"
|
|
|
|
[[example]]
|
|
name = "multipart"
|
|
required-features = ["multipart"]
|
|
|
|
[[test]]
|
|
name = "multipart"
|
|
required-features = ["multipart"]
|
|
|
|
[[test]]
|
|
name = "ws"
|
|
required-features = ["websocket"]
|
|
|
|
[dependencies.async-compression]
|
|
version = "0.4.5"
|
|
features = ["tokio"]
|
|
optional = true
|
|
|
|
[dependencies.bytes]
|
|
version = "1.0"
|
|
|
|
[dependencies.futures-channel]
|
|
version = "0.3.17"
|
|
features = ["sink"]
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3"
|
|
features = ["sink"]
|
|
default-features = false
|
|
|
|
[dependencies.headers]
|
|
version = "0.3.5"
|
|
|
|
[dependencies.http]
|
|
version = "0.2"
|
|
|
|
[dependencies.hyper]
|
|
version = "0.14"
|
|
features = [
|
|
"stream",
|
|
"server",
|
|
"http1",
|
|
"http2",
|
|
"tcp",
|
|
"client",
|
|
]
|
|
|
|
[dependencies.log]
|
|
version = "0.4"
|
|
|
|
[dependencies.mime]
|
|
version = "0.3"
|
|
|
|
[dependencies.mime_guess]
|
|
version = "2.0.0"
|
|
|
|
[dependencies.multer]
|
|
version = "2.1.0"
|
|
optional = true
|
|
|
|
[dependencies.percent-encoding]
|
|
version = "2.1"
|
|
|
|
[dependencies.pin-project]
|
|
version = "1.0"
|
|
|
|
[dependencies.rustls-pemfile]
|
|
version = "2.0"
|
|
optional = true
|
|
|
|
[dependencies.scoped-tls]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde_urlencoded]
|
|
version = "0.7.1"
|
|
|
|
[dependencies.tokio]
|
|
version = "1.0"
|
|
features = [
|
|
"fs",
|
|
"sync",
|
|
"time",
|
|
]
|
|
|
|
[dependencies.tokio-rustls]
|
|
version = "0.25"
|
|
optional = true
|
|
|
|
[dependencies.tokio-tungstenite]
|
|
version = "0.21"
|
|
optional = true
|
|
|
|
[dependencies.tokio-util]
|
|
version = "0.7.1"
|
|
features = ["io"]
|
|
|
|
[dependencies.tower-service]
|
|
version = "0.3"
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1.21"
|
|
features = [
|
|
"log",
|
|
"std",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.handlebars]
|
|
version = "5.0"
|
|
|
|
[dev-dependencies.listenfd]
|
|
version = "1.0"
|
|
|
|
[dev-dependencies.pretty_env_logger]
|
|
version = "0.5"
|
|
|
|
[dev-dependencies.serde_derive]
|
|
version = "1.0"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.0"
|
|
features = [
|
|
"macros",
|
|
"rt-multi-thread",
|
|
]
|
|
|
|
[dev-dependencies.tokio-stream]
|
|
version = "0.1.1"
|
|
features = ["net"]
|
|
|
|
[dev-dependencies.tracing-log]
|
|
version = "0.2"
|
|
|
|
[dev-dependencies.tracing-subscriber]
|
|
version = "0.3"
|
|
features = ["env-filter"]
|
|
|
|
[features]
|
|
compression = [
|
|
"compression-brotli",
|
|
"compression-gzip",
|
|
]
|
|
compression-brotli = ["async-compression/brotli"]
|
|
compression-gzip = [
|
|
"async-compression/deflate",
|
|
"async-compression/gzip",
|
|
]
|
|
default = [
|
|
"multipart",
|
|
"websocket",
|
|
]
|
|
multipart = ["multer"]
|
|
tls = [
|
|
"tokio-rustls",
|
|
"rustls-pemfile",
|
|
]
|
|
websocket = ["tokio-tungstenite"]
|