-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathCargo.toml
More file actions
169 lines (149 loc) · 5.95 KB
/
Cargo.toml
File metadata and controls
169 lines (149 loc) · 5.95 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[package]
name = "aws-smithy-http-client"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>"]
description = "HTTP client abstractions for generated smithy clients"
version = "1.1.9"
license = "Apache-2.0"
edition = "2021"
repository = "https://github.com/smithy-lang/smithy-rs"
rust-version = "1.88"
[features]
hyper-014 = [
"aws-smithy-runtime-api/http-02x",
"aws-smithy-types/http-body-0-4-x",
"dep:http-02x",
"dep:http-body-04x",
"dep:hyper-0-14",
"dep:h2-0-3"
]
default-client = [
"aws-smithy-runtime-api/http-1x",
"aws-smithy-types/http-body-1-x",
"dep:hyper",
"dep:hyper-util",
"hyper-util?/client-legacy",
"hyper-util?/client-proxy",
"dep:http-1x",
"dep:tower",
"dep:rustls-pki-types",
"dep:rustls-native-certs"
]
wire-mock = [
"test-util",
"default-client",
"hyper-util?/server",
"hyper-util?/server-auto",
"hyper-util?/service",
"hyper-util?/server-graceful",
"tokio/macros",
"dep:http-body-util",
]
test-util = [
"dep:aws-smithy-protocol-test",
"dep:serde",
"dep:serde_json",
"dep:indexmap",
"dep:bytes",
# for capture_request
"dep:http-1x",
"aws-smithy-runtime-api/http-1x",
# for dvr
"dep:http-body-1x",
"aws-smithy-types/http-body-1-x",
# for replay
"tokio/rt"
]
legacy-test-util = [
"test-util",
"dep:http-02x",
"aws-smithy-runtime-api/http-02x",
"aws-smithy-types/http-body-0-4-x",
]
legacy-rustls-ring = ["dep:legacy-hyper-rustls", "dep:legacy-rustls", "dep:rustls-native-certs", "hyper-014"]
rustls-ring = ["dep:rustls", "rustls?/ring", "dep:hyper-rustls", "dep:tokio-rustls", "default-client"]
rustls-aws-lc = ["dep:rustls", "rustls?/aws_lc_rs", "rustls?/prefer-post-quantum", "dep:hyper-rustls", "dep:tokio-rustls", "default-client"]
rustls-aws-lc-fips = ["dep:rustls", "rustls?/fips", "rustls?/prefer-post-quantum", "dep:hyper-rustls", "dep:tokio-rustls","default-client"]
s2n-tls = ["dep:s2n-tls", "dep:s2n-tls-hyper", "dep:s2n-tls-tokio", "default-client"]
[dependencies]
aws-smithy-async = { path = "../aws-smithy-async" }
aws-smithy-runtime-api = { path = "../aws-smithy-runtime-api", features = ["client"] }
aws-smithy-types = { path = "../aws-smithy-types" }
aws-smithy-protocol-test = { path = "../aws-smithy-protocol-test", optional = true }
h2 = { version = "0.4.11", default-features = false }
tokio = { version = "1.46", features = [] }
pin-project-lite = "0.2.14"
tracing = "0.1.40"
# hyper 1.x stack
hyper = { version = "1.6.0", features = ["client", "http1", "http2"], optional = true }
hyper-util = { version = "0.1.16", features = ["http1", "http2"], optional = true }
http-1x = { package = "http", version = "1.3.1" , optional = true }
http-body-1x = { package = "http-body", version = "1.0.1", optional = true}
hyper-rustls = { version = "0.27", features = ["http2", "http1", "native-tokio", "tls12"], default-features = false, optional = true }
rustls = { version = "0.23.31", default-features = false, optional = true }
tokio-rustls = { version = "0.26.2", default-features = false, optional = true}
# TODO(hyper1): add a way to enable the fips feature flag in s2n-tls
s2n-tls-hyper = { version = "0.1.0", optional = true }
s2n-tls = { version = "0.3.33", optional = true }
s2n-tls-tokio = { version = "0.3.33", optional = true}
tower = { version = "0.5.2", optional = true }
rustls-pki-types = { version = "1.12.0", features = ["std"], optional = true }
rustls-native-certs = { version = "0.8.1", optional = true }
# end hyper 1.x stack deps
# legacy hyper-0.14.x stack the SDK/runtime GA'd with
http-02x = { package = "http", version = "0.2.12", optional = true}
http-body-04x = { package = "http-body", version = "0.4.6" , optional = true}
hyper-0-14 = { package = "hyper", version = "0.14.26", default-features = false, features = ["client", "http1", "http2", "tcp", "stream"], optional = true }
legacy-hyper-rustls = { package = "hyper-rustls", version = "0.24.2", default-features = false, features = ["http1", "tls12", "logging", "acceptor", "tokio-runtime", "http2"], optional = true }
legacy-rustls = { package = "rustls", version = "0.21.8", optional = true }
h2-0-3 = { package = "h2", version = "0.3.24", optional = true }
# end legacy stack deps
# test util stack
bytes = { version = "1.10.0", optional = true }
serde = { version = "1.0.210", features = ["derive"], optional = true }
serde_json = { version = "1.0.128", features = ["preserve_order"], optional = true }
indexmap = { version = "2.10.0", features = ["serde"], optional = true }
http-body-util = { version = "0.1.3", optional = true }
# end test util stack
[dev-dependencies]
aws-smithy-async = { path = "../aws-smithy-async", features = ["rt-tokio", "test-util"] }
aws-smithy-runtime-api = { path = "../aws-smithy-runtime-api", features = ["test-util"] }
aws-smithy-types = { path = "../aws-smithy-types", features = ["http-body-0-4-x", "test-util"] }
http-body-util = { version = "0.1.3" }
serial_test = "3.2"
hyper-util = { version = "0.1.16", features = ["full"] }
base64 = "0.22"
rustls-pemfile = "2.2.0"
rustls-pki-types = { version = "1.12.0", features = ["std"] }
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread", "test-util", "full"] }
tokio-rustls = "0.26.2"
[[example]]
name = "client-ring"
required-features = ["rustls-ring"]
doc-scrape-examples = true
[[example]]
name = "client-aws-lc"
required-features = ["rustls-aws-lc", "rustls-aws-lc-fips"]
doc-scrape-examples = true
[[example]]
name = "client-s2n-tls"
required-features = ["s2n-tls"]
doc-scrape-examples = true
[[example]]
name = "custom-dns"
required-features = ["rustls-ring"]
doc-scrape-examples = true
[package.metadata.smithy-rs-release-tooling]
stable = true
[package.metadata.docs.rs]
all-features = false
features = [
"default-client ",
"wire-mock",
"test-util",
"rustls-ring",
"rustls-aws-lc",
]
targets = ["x86_64-unknown-linux-gnu"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]
# End of docs.rs metadata