-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCargo.toml
94 lines (82 loc) · 2.9 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
[package]
name = "swagger"
version = "7.0.0-rc1"
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"
[badges.travis-ci]
repository = "Metaswitch/swagger-rs"
[features]
default = ["serdejson"]
multipart_form = ["mime"]
multipart_related = ["mime_multipart"]
serdejson = ["serde", "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"
# 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 }
futures = "0.3"
headers = "0.4.0"
hyper = { version = "1" }
# 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.6", optional = true }
paste = { version = "1", optional = true }
regex = { version = "1", optional = true }
serde = { version = "1.0.119", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
serde_valid = { version = "0.25", optional = true }
# 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]
bytes = "1.8.0"
http-body-util = "0.1.2"
hyper-util = { version = "0.1.8", features = ["full"] }
hyper_10 = { package = "hyper", version = "0.10" }
mime_026 = { package = "mime", version = "0.2.6" }
tokio = { version = "1.0", features = ["macros", "rt"] }
tokio-test = "0.4.4"
[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"]