-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
executable file
·77 lines (72 loc) · 2.27 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-client-sockets"
version = "0.4.0"
edition = "2021"
license = "MIT"
description = "A Hyper client library allowing access to Unix, VSock and Firecracker sockets"
rust-version = "1.63"
repository = "https://github.com/kanpov/hyper-client-sockets"
readme = "README.md"
keywords = ["hyper", "client", "sockets"]
categories = ["web-programming", "web-programming::http-client"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
hex = "0.4.3"
hyper = { version = "1.4.1", default-features = false }
pin-project = "1.1.7"
futures-io = "0.3.31"
http = "1.1.0"
# hyper-util support
tower-service = { version = "0.3.3", optional = true }
hyper-util = { version = "0.1.9", features = [
"client-legacy",
], optional = true }
# tokio backend
tokio = { version = "1.40.0", features = ["net", "io-util"], optional = true }
tokio-util = { version = "0.7.12", default-features = false, optional = true, features = [
"compat",
] }
# async-io backend
async-io = { version = "2.0.0", optional = true }
smol-hyper = { version = "0.1.1", default-features = false, features = [
"async-io",
], optional = true }
# firecracker
futures-util = { version = "0.3.31", default-features = false, features = [
"io",
], optional = true }
# vsock
vsock = { version = "0.5.1", optional = true }
libc = { version = "0.2.164", optional = true }
[dev-dependencies]
hyper-client-sockets = { path = ".", features = ["full"] }
# general utils to run embedded servers
http-body-util = "0.1.2"
hyper-util = { version = "0.1.6", features = ["http1"] }
hyper = { version = "1.4.1", features = ["server"] }
uuid = { version = "1.10.0", features = ["v4"] }
bytes = "1.7.2"
rand = "0.8.5"
tokio-vsock = "0.6.0"
# concrete runtimes
tokio = { version = "1.38.0", features = ["macros", "fs"] }
async-executor = "1.13.1"
smol-hyper = { version = "0.1.1", features = ["async-executor"] }
[features]
default = []
full = [
"tokio-backend",
"async-io-backend",
"unix",
"vsock",
"firecracker",
"connector",
]
tokio-backend = ["dep:tokio", "hyper-util/tokio", "dep:tokio-util"]
async-io-backend = ["dep:async-io", "dep:smol-hyper"]
connector = ["dep:tower-service", "dep:hyper-util"]
unix = []
vsock = ["dep:vsock", "dep:libc"]
firecracker = ["dep:futures-util"]