forked from hyperium/hyper-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (51 loc) · 1.63 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "hyper-util"
version = "0.0.0"
description = "hyper utilities"
readme = "README.md"
homepage = "https://hyper.rs"
documentation = "https://docs.rs/hyper-util"
repository = "https://github.com/hyperium/hyper-util"
license = "MIT"
authors = ["Sean McArthur <sean@seanmonstar.com>"]
keywords = ["http", "hyper", "hyperium"]
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
edition = "2018"
publish = false # no accidents while in dev
[dependencies]
hyper = "1.0.0"
futures-channel = "0.3"
futures-util = { version = "0.3", default-features = false }
http = "1.0"
http-body = "1.0.0"
bytes = "1"
pin-project-lite = "0.2.4"
socket2 = "0.5"
tracing = { version = "0.1", default-features = false, features = ["std"] }
tokio = { version = "1", features = ["net", "rt", "time"] }
tower-service = "0.3"
tower = { version = "0.4", features = ["make", "util"] }
[dev-dependencies]
hyper = { version = "1.0.0", features = ["full"] }
bytes = "1"
http-body-util = "0.1.0"
tokio = { version = "1", features = ["macros", "test-util"] }
tokio-test = "0.4"
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
pnet_datalink = "0.34.0"
[features]
default = []
# Shorthand to enable everything
full = ["client", "server", "http1", "http2", "tcp", "auto", "runtime"]
client = ["hyper/client"]
server = ["hyper/server"]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
tcp = []
auto = ["hyper/server", "http1", "http2"]
runtime = []
# internal features used in CI
__internal_happy_eyeballs_tests = []
[[example]]
name = "client"
required-features = ["client", "http1", "tcp", "runtime"]