forked from hyperium/hyper-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
77 lines (64 loc) · 1.99 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[package]
name = "hyper-util"
version = "0.1.2"
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 <[email protected]>"]
keywords = ["http", "hyper", "hyperium"]
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
edition = "2021"
[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
hyper = "1.1.0"
futures-channel = "0.3"
futures-util = { version = "0.3.16", default-features = false }
http = "1.0"
http-body = "1.0.0"
bytes = "1"
pin-project-lite = "0.2.4"
socket2 = { version = "0.5", optional = true, features = ["all"] }
tracing = { version = "0.1", default-features = false, features = ["std"] }
tokio = { version = "1", optional = true, features = ["net", "rt", "time"] }
tower-service ={ version = "0.3", optional = true }
tower = { version = "0.4.1", optional = true, features = ["make", "util"] }
[dev-dependencies]
hyper = { version = "1.1.0", features = ["full"] }
bytes = "1"
http-body-util = "0.1.0"
tokio = { version = "1", features = ["macros", "test-util"] }
tokio-test = "0.4"
pretty_env_logger = "0.5"
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
pnet_datalink = "0.34.0"
[features]
default = []
# Shorthand to enable everything
full = [
"client",
"client-legacy",
"server",
"server-auto",
"service",
"http1",
"http2",
"tokio",
]
client = ["hyper/client", "dep:tower", "dep:tower-service"]
client-legacy = ["client"]
server = ["hyper/server"]
server-auto = ["server", "http1", "http2"]
service = ["dep:tower", "dep:tower-service"]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
tokio = ["dep:tokio", "dep:socket2"]
# internal features used in CI
__internal_happy_eyeballs_tests = []
[[example]]
name = "client"
required-features = ["client-legacy", "http1", "tokio"]