-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
executable file
·82 lines (77 loc) · 2.17 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
78
79
80
81
82
[package]
name = "hyper-client-sockets"
version = "0.6.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/rust-firecracker/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]
hyper = { version = "1.5.2", default-features = false }
# hyper-util support
tower-service = { version = "0.3.3", optional = true }
hyper-util = { version = "0.1.10", optional = true, default-features = false }
hex = { version = "0.4.3", optional = true }
http = { version = "1.2.0", optional = true }
# tokio backend
tokio = { version = "1.43.0", features = ["net", "io-util"], optional = true }
libc = { version = "0.2.169", optional = true }
# async-io backend
async-io = { version = "2.4.0", optional = true }
smol-hyper = { version = "0.1.1", optional = true, default-features = false, features = [
"async-io",
] }
futures-lite = { version = "2.6.0", optional = true }
# vsock sockets
vsock = { version = "0.5.1", optional = true }
[dev-dependencies]
hyper-client-sockets = { path = ".", features = ["full"] }
# runtimes
tokio = { version = "1.43.0", features = ["macros", "fs"] }
async-executor = "1.13.1"
# hyper utils
hyper = { version = "1.5.2", features = ["server", "http1"] }
hyper-util = { version = "0.1.10", features = [
"client",
"client-legacy",
"http1",
] }
http-body-util = "0.1.2"
bytes = "1.9.0"
# misc
uuid = { version = "1.12.0", features = ["v4"] }
tokio-vsock = "0.7.0"
fastrand = "2.3.0"
smol-hyper = "0.1.1"
[features]
default = []
full = [
"tokio-backend",
"async-io-backend",
"unix",
"vsock",
"firecracker",
"hyper-util",
]
tokio-backend = ["dep:tokio", "dep:libc", "hyper-util/tokio"]
async-io-backend = [
"dep:async-io",
"dep:smol-hyper",
"dep:futures-lite",
"dep:libc",
]
hyper-util = [
"dep:tower-service",
"hyper-util/client-legacy",
"dep:hex",
"dep:http",
]
unix = []
vsock = ["dep:vsock"]
firecracker = []