@@ -27,7 +27,7 @@ client = [
27
27
"serde_ignored", "regex", "percent-encoding", "lazy_static",
28
28
{ {/hasCallbacks} }
29
29
{ {! Anything added to the list below, should probably be added to the callbacks list below } }
30
- "hyper", "hyper-openssl", "native-tls", "openssl", "url"
30
+ "hyper", "hyper-openssl", "hyper-tls", " native-tls", "openssl", "url"
31
31
]
32
32
server = [
33
33
{ {#apiUsesMultipart} }
@@ -40,7 +40,7 @@ server = [
40
40
"hyper_0_10", "mime_multipart",
41
41
{ {/apiUsesMultipartRelated} }
42
42
{ {#hasCallbacks} }
43
- "native-tls", "hyper-openssl", "openssl",
43
+ "native-tls", "hyper-openssl", "hyper-tls", " openssl",
44
44
{ {/hasCallbacks} }
45
45
{ {! Anything added to the list below, should probably be added to the callbacks list above } }
46
46
"serde_ignored", "hyper", "regex", "percent-encoding", "url", "lazy_static"
@@ -49,20 +49,22 @@ conversion = ["frunk", "frunk_derives", "frunk_core", "frunk-enum-core", "frunk-
49
49
50
50
[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "ios"))'.dependencies]
51
51
native-tls = { version = " 0.2" , optional = true }
52
+ hyper-tls = { version = " 0.4" , optional = true }
52
53
53
54
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dependencies]
54
- hyper-openssl = { version = " 0.7.1 " , optional = true }
55
+ hyper-openssl = { version = " 0.8 " , optional = true }
55
56
openssl = { version = " 0.10" , optional = true }
56
57
57
58
[dependencies]
58
59
# Common
60
+ async-trait = "0.1.24"
59
61
chrono = { version = " 0.4" , features = [" serde" ] }
60
- futures = "0.1 "
61
- swagger = "4.0 "
62
+ futures = "0.3 "
63
+ swagger = "5.0.0-alpha-1 "
62
64
log = "0.4.0"
63
65
mime = "0.3"
64
66
65
- serde = { version = " 1.0" , features = [" derive" ]}
67
+ serde = { version = " 1.0" , features = [" derive" ] }
66
68
serde_json = "1.0"
67
69
68
70
# Crates included if required by the API definition
@@ -78,27 +80,27 @@ mime_0_2 = { package = "mime", version = "0.2.6", optional = true }
78
80
multipart = { version = " 0.16" , default -features = false , optional = true }
79
81
{ {/apiUsesMultipartFormData} }
80
82
{ {#apiUsesUuid} }
81
- uuid = { version = " 0.7 " , features = [" serde" , " v4" ]}
83
+ uuid = { version = " 0.8 " , features = [" serde" , " v4" ]}
82
84
{ {/apiUsesUuid} }
83
85
84
86
# Common between server and client features
85
- hyper = { version = " 0.12 " , optional = true }
87
+ hyper = { version = " 0.13 " , optional = true }
86
88
{ {#apiUsesMultipartRelated} }
87
89
mime_multipart = { version = " 0.5" , optional = true }
88
90
hyper_0_10 = { package = " hyper" , version = " 0.10" , default -features = false , optional= true }
89
91
{ {/apiUsesMultipartRelated} }
90
- serde_ignored = { version = " 0.0.4 " , optional = true }
91
- url = { version = " 1.5 " , optional = true }
92
+ serde_ignored = { version = " 0.1.1 " , optional = true }
93
+ url = { version = " 2.1 " , optional = true }
92
94
93
95
# Client-specific
94
96
{ {#usesUrlEncodedForm} }
95
- serde_urlencoded = { version = " 0.5 .1" , optional = true }
97
+ serde_urlencoded = { version = " 0.6 .1" , optional = true }
96
98
{ {/usesUrlEncodedForm} }
97
99
98
100
# Server, and client callback-specific
99
101
lazy_static = { version = " 1.4" , optional = true }
100
- percent-encoding = { version = " 1.0 .0" , optional = true }
101
- regex = { version = " 0.2 " , optional = true }
102
+ percent-encoding = { version = " 2.1 .0" , optional = true }
103
+ regex = { version = " 1.3 " , optional = true }
102
104
103
105
# Conversion
104
106
frunk = { version = " 0.3.0" , optional = true }
@@ -109,15 +111,13 @@ frunk-enum-core = { version = "0.2.0", optional = true }
109
111
110
112
[dev-dependencies]
111
113
clap = "2.25"
112
- error-chain = "0.12"
113
- env_logger = "0.6"
114
- tokio = "0.1.17"
115
- { {^apiUsesUuid} }
116
- uuid = { version = " 0.7" , features = [" serde" , " v4" ]}
117
- { {/apiUsesUuid} }
114
+ env_logger = "0.7"
115
+ tokio = { version = " 0.2" , features = [" rt-threaded" , " macros" , " stream" ] }
116
+ native-tls = "0.2"
117
+ tokio-tls = "0.3"
118
118
119
119
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
120
- tokio-openssl = "0.3 "
120
+ tokio-openssl = "0.4 "
121
121
openssl = "0.10"
122
122
123
123
[[example]]
0 commit comments