-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathCargo.toml
More file actions
93 lines (81 loc) · 2.8 KB
/
Cargo.toml
File metadata and controls
93 lines (81 loc) · 2.8 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
[package]
name = "swagger"
version = "7.0.0"
authors = ["Metaswitch Networks Ltd"]
license = "Apache-2.0"
description = "A set of common utilities for Rust code generated by OpenAPI Generator"
homepage = "https://github.com/Metaswitch/swagger-rs"
repository = "https://github.com/Metaswitch/swagger-rs"
readme = "README.md"
keywords = ["swagger"]
edition = "2021"
[features]
default = ["serdejson"]
multipart_form = ["mime"]
multipart_related = ["mime_multipart", "mime"]
serdejson = ["serde_json"]
serdevalid = ["serdejson", "serde_valid", "regex", "paste"]
server = ["hyper/server"]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
client = ["hyper/client", "hyper-util"]
tls = ["native-tls", "openssl", "hyper-openssl", "hyper-tls"]
uds = ["tokio", "tokio/net"]
conversion = [
"frunk",
"frunk_derives",
"frunk_core",
"frunk-enum-core",
"frunk-enum-derive",
]
[dependencies]
base64 = "0.22"
futures = "0.3"
headers = "0.4.0"
http = "1"
bytes = "1.8.0"
hyper = "1"
# Conversion
frunk = { version = "0.4", optional = true }
frunk-enum-core = { version = "0.3", optional = true }
frunk-enum-derive = { version = "0.3", optional = true }
frunk_core = { version = "0.4", optional = true }
frunk_derives = { version = "0.4", optional = true }
# Client
hyper-util = { version = "0.1.8", features = [
"client",
"client-legacy",
], optional = true }
# multipart/form-data
mime = { version = "0.3", optional = true }
# multipart/related
mime_multipart = { version = "0.10", package = "mime-multipart-hyper1", optional = true }
# serde
paste = { version = "1", optional = true }
regex = { version = "1", optional = true }
serde = { version = "1.0.225", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
serde_valid = { version = "2.0", optional = true }
serde-value = { version = "0.7" }
# UDS (Unix Domain Sockets)
tokio = { version = "1.0", default-features = false, optional = true }
uuid = { version = "1", features = ["serde", "v4"] }
zeroize = { version = "1.8.1", features = ["zeroize_derive"] }
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dependencies]
hyper-openssl = { version = "0.10.0", optional = true, features = [
"client-legacy",
"tokio",
] }
openssl = { version = "0.10.28", optional = true }
[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "ios"))'.dependencies]
hyper-tls = { version = "0.6", optional = true }
native-tls = { version = "0.2", optional = true }
[dev-dependencies]
hyper-util = { version = "0.1.8", features = ["full"] }
tokio = { version = "1.0", features = ["macros", "rt"] }
tokio-test = "0.4.4"
http-body-util = "0.1.2"
[package.metadata.docs.rs]
# Enable all features, pending https://github.com/rust-lang/rust/issues/43781 being resolved.
all-features = true
rustdoc-args = ["--cfg", "docsrs"]