-
Notifications
You must be signed in to change notification settings - Fork 136
/
Cargo.toml
109 lines (101 loc) · 3.94 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[package]
name = "bollard"
description = "An asynchronous Docker daemon API"
version = "0.18.1"
authors = [ "Bollard contributors" ]
license = "Apache-2.0"
homepage = "https://github.com/fussybeaver/bollard"
repository = "https://github.com/fussybeaver/bollard"
documentation = "https://docs.rs/bollard"
readme = "README.md"
keywords = ["docker"]
edition = "2021"
[workspace]
members = [
"codegen/swagger",
"codegen/proto",
"."
]
[features]
default = ["http", "pipe"]
# Enable Buildkit-enabled docker image building
buildkit = ["chrono", "num", "rand", "tokio/fs", "tokio-stream", "tokio-util/io", "tonic", "tower-service", "ssl", "bollard-stubs/buildkit", "bollard-buildkit-proto", "dep:async-stream", "dep:bitflags"]
# Enable tests specifically for the http connector
test_http = []
# Enable tests specifically for rustls
test_ssl = ["dep:webpki-roots", "ssl_providerless"]
test_ring = ["test_ssl", "ssl"]
test_aws_lc_rs = ["test_ssl", "aws-lc-rs"]
# Enable tests specifically for macos
test_macos = []
# Enable tests specifically for buildkit's sshforward functionality
test_sshforward = []
# Enable tests specifically for swarm
test_swarm = []
# Enable JSON payload in deserialization errors
json_data_content = []
# Enable rustls / ssl
ssl = ["ssl_providerless", "rustls/ring"]
aws-lc-rs = ["ssl_providerless", "rustls/aws-lc-rs"]
ssl_providerless = ["home", "hyper-rustls", "rustls", "rustls-native-certs", "rustls-pemfile", "rustls-pki-types", "http"]
webpki = ["ssl", "dep:webpki-roots"]
chrono = ["dep:chrono", "bollard-stubs/chrono"]
time = ["dep:time", "bollard-stubs/time"]
http = ["hyper-util"]
pipe = ["hyperlocal", "hyper-named-pipe"]
[dependencies]
base64 = "0.22"
bollard-stubs = { version = "=1.47.1-rc.27.3.1", default-features = false }
bollard-buildkit-proto = { path = "codegen/proto", version = "=0.5.0", optional = true }
bytes = "1"
chrono = { version = "0.4", default-features = false, features = ["std", "clock", "serde"], optional = true }
futures-core = "0.3"
futures-util = "0.3"
hex = "0.4"
home = { version = "0.5", optional = true }
http = "1.1"
http-body-util = "0.1"
hyper = { version = "1.3", features = ["client", "http1"] }
hyper-rustls = { version = "0.27", optional = true, default-features = false , features = ["http1"]}
hyper-util = { version = "0.1.5", optional = true, features = ["http1", "client-legacy", "tokio"] }
log = "0.4"
pin-project-lite = "0.2"
num = { version = "0.4", optional = true }
rand = { version = "0.8", optional = true }
rustls = { version = "0.23", default-features = false, features = ["std"], optional = true}
rustls-native-certs = { version = "0.8.0", optional = true }
rustls-pemfile = { version = "2.1", optional = true }
rustls-pki-types = { version = "1.7", optional = true }
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_repr = "0.1"
serde_urlencoded = "0.7"
tokio = { version = "1.38", features = ["time", "net", "io-util"] }
tonic = { version = "0.12", optional = true }
thiserror = "2.0"
time = { version = "0.3", features = ["formatting", "parsing"], optional = true }
tokio-util = { version = "0.7", features = ["codec"] }
tokio-stream = { version = "0.1", features = ["net"], optional = true }
tower-service = { version = "0.3", optional = true }
url = "2.5"
webpki-roots = { version = "0.26", optional = true }
async-stream = { version = "0.3.5", optional = true }
bitflags = { version = "2.6.0", optional = true }
[dev-dependencies]
flate2 = "1.0"
tar = "0.4"
tokio = { version = "1.38", features = ["fs", "rt-multi-thread", "macros"] }
tokio-util = { version = "0.7", features = ["io"] }
yup-hyper-mock = { version = "8.0.0" }
once_cell = "1.19"
[target.'cfg(unix)'.dependencies]
hyperlocal = { version = "0.9.0", optional = true }
[target.'cfg(unix)'.dev-dependencies]
termion = "4.0"
[target.'cfg(windows)'.dependencies]
hyper-named-pipe = { version = "0.1.0", optional = true }
winapi = { version = "0.3.9", features = ["winerror"] }
tower-service = { version = "0.3" }
[package.metadata.docs.rs]
features = ["ssl"]