Debian Codegraph @

third_party/rust/warp/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2018"
14 name = "warp"
15 version = "0.3.7"
16 authors = ["Sean McArthur <[email protected]>"]
17 autoexamples = true
18 autotests = true
19 description = "serve the web at warp speeds"
20 documentation = "https://docs.rs/warp"
21 readme = "README.md"
22 keywords = [
23 "warp",
24 "server",
25 "http",
26 "hyper",
27 ]
28 categories = ["web-programming::http-server"]
29 license = "MIT"
30 repository = "https://github.com/seanmonstar/warp"
31
32 [package.metadata.docs.rs]
33 all-features = true
34
35 [profile.bench]
36 codegen-units = 1
37 incremental = false
38
39 [profile.release]
40 codegen-units = 1
41 incremental = false
42
43 [[example]]
44 name = "compression"
45 required-features = ["compression"]
46
47 [[example]]
48 name = "unix_socket"
49
50 [[example]]
51 name = "websockets"
52 required-features = ["websocket"]
53
54 [[example]]
55 name = "websockets_chat"
56 required-features = ["websocket"]
57
58 [[example]]
59 name = "query_string"
60
61 [[example]]
62 name = "multipart"
63 required-features = ["multipart"]
64
65 [[test]]
66 name = "multipart"
67 required-features = ["multipart"]
68
69 [[test]]
70 name = "ws"
71 required-features = ["websocket"]
72
73 [dependencies.async-compression]
74 version = "0.4.5"
75 features = ["tokio"]
76 optional = true
77
78 [dependencies.bytes]
79 version = "1.0"
80
81 [dependencies.futures-channel]
82 version = "0.3.17"
83 features = ["sink"]
84
85 [dependencies.futures-util]
86 version = "0.3"
87 features = ["sink"]
88 default-features = false
89
90 [dependencies.headers]
91 version = "0.3.5"
92
93 [dependencies.http]
94 version = "0.2"
95
96 [dependencies.hyper]
97 version = "0.14"
98 features = [
99 "stream",
100 "server",
101 "http1",
102 "http2",
103 "tcp",
104 "client",
105 ]
106
107 [dependencies.log]
108 version = "0.4"
109
110 [dependencies.mime]
111 version = "0.3"
112
113 [dependencies.mime_guess]
114 version = "2.0.0"
115
116 [dependencies.multer]
117 version = "2.1.0"
118 optional = true
119
120 [dependencies.percent-encoding]
121 version = "2.1"
122
123 [dependencies.pin-project]
124 version = "1.0"
125
126 [dependencies.rustls-pemfile]
127 version = "2.0"
128 optional = true
129
130 [dependencies.scoped-tls]
131 version = "1.0"
132
133 [dependencies.serde]
134 version = "1.0"
135
136 [dependencies.serde_json]
137 version = "1.0"
138
139 [dependencies.serde_urlencoded]
140 version = "0.7.1"
141
142 [dependencies.tokio]
143 version = "1.0"
144 features = [
145 "fs",
146 "sync",
147 "time",
148 ]
149
150 [dependencies.tokio-rustls]
151 version = "0.25"
152 optional = true
153
154 [dependencies.tokio-tungstenite]
155 version = "0.21"
156 optional = true
157
158 [dependencies.tokio-util]
159 version = "0.7.1"
160 features = ["io"]
161
162 [dependencies.tower-service]
163 version = "0.3"
164
165 [dependencies.tracing]
166 version = "0.1.21"
167 features = [
168 "log",
169 "std",
170 ]
171 default-features = false
172
173 [dev-dependencies.handlebars]
174 version = "5.0"
175
176 [dev-dependencies.listenfd]
177 version = "1.0"
178
179 [dev-dependencies.pretty_env_logger]
180 version = "0.5"
181
182 [dev-dependencies.serde_derive]
183 version = "1.0"
184
185 [dev-dependencies.tokio]
186 version = "1.0"
187 features = [
188 "macros",
189 "rt-multi-thread",
190 ]
191
192 [dev-dependencies.tokio-stream]
193 version = "0.1.1"
194 features = ["net"]
195
196 [dev-dependencies.tracing-log]
197 version = "0.2"
198
199 [dev-dependencies.tracing-subscriber]
200 version = "0.3"
201 features = ["env-filter"]
202
203 [features]
204 compression = [
205 "compression-brotli",
206 "compression-gzip",
207 ]
208 compression-brotli = ["async-compression/brotli"]
209 compression-gzip = [
210 "async-compression/deflate",
211 "async-compression/gzip",
212 ]
213 default = [
214 "multipart",
215 "websocket",
216 ]
217 multipart = ["multer"]
218 tls = [
219 "tokio-rustls",
220 "rustls-pemfile",
221 ]
222 websocket = ["tokio-tungstenite"]