Skip to content

Commit a8003fb

Browse files
authored
Update rust-server Cargo.toml dependencies (#23413)
* Update rust-server Cargo.toml dependencies * Update tokio in rust-server-deprecated to resolve CI failure
1 parent 99f49c2 commit a8003fb

File tree

16 files changed

+131
-131
lines changed

16 files changed

+131
-131
lines changed

modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ anyhow = { version = "1", optional = true }
141141
clap-verbosity-flag = { version = "0.3", optional = true }
142142
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
143143
structopt = { version = "0.3", optional = true }
144-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
144+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
145145
{{#apiHasDeleteMethods}}
146146
dialoguer = { version = "0.8", optional = true }
147147
{{/apiHasDeleteMethods}}

modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ validate = [{{^apiUsesByteArray}}"regex",{{/apiUsesByteArray}} "serde_valid", "s
8888

8989
[dependencies]
9090
# Common
91-
async-trait = "0.1.88"
91+
async-trait = "0.1.89"
9292
chrono = { version = "0.4", features = ["serde"] }
9393
futures = "0.3"
9494
swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] }
95-
headers = "0.4.0"
96-
log = "0.4.27"
95+
headers = "0.4.1"
96+
log = "0.4.29"
9797

9898
mime = "0.3"
9999
mockall = { version = "0.14", optional = true }
@@ -120,14 +120,14 @@ serde-xml-rs = "0.8"
120120
multipart = { version = "0.18", default-features = false, optional = true }
121121
{{/apiUsesMultipartFormData}}
122122
{{#apiUsesUuid}}
123-
uuid = { version = "1.18.0", features = ["serde", "v4"]}
123+
uuid = { version = "1.23.0", features = ["serde", "v4"]}
124124
{{/apiUsesUuid}}
125125

126126
# Common between server and client features
127127
bytes = "1.11"
128128
http-body-util = "0.1.3"
129-
hyper = { version = "1.8", features = ["full"], optional = true }
130-
hyper-util = { version = "0.1.18", features = ["service"] }
129+
hyper = { version = "1.9.0", features = ["full"], optional = true }
130+
hyper-util = { version = "0.1.20", features = ["service"] }
131131
{{#apiUsesMultipartRelated}}
132132
mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" }
133133
{{/apiUsesMultipartRelated}}
@@ -149,18 +149,18 @@ percent-encoding = { version = "2.3.2", optional = true }
149149

150150
# CLI-specific
151151
anyhow = { version = "1", optional = true }
152-
clap = { version = "4.5", features = ["env"], optional = true }
152+
clap = { version = "4.6.0", features = ["env"], optional = true }
153153
clap-verbosity-flag = { version = "3.0", optional = true }
154-
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
155-
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
154+
simple_logger = { version = "5.2.0", features = ["stderr"], optional = true }
155+
tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true }
156156
{{#apiHasDeleteMethods}}
157157
dialoguer = { version = "0.12", optional = true }
158158
{{/apiHasDeleteMethods}}
159159

160160
# Conversion
161-
frunk = { version = "0.4.3", optional = true }
162-
frunk_derives = { version = "0.4.3", optional = true }
163-
frunk_core = { version = "0.4.3", optional = true }
161+
frunk = { version = "0.4.4", optional = true }
162+
frunk_derives = { version = "0.4.4", optional = true }
163+
frunk_core = { version = "0.4.4", optional = true }
164164
frunk-enum-derive = { version = "0.3.0", optional = true }
165165
frunk-enum-core = { version = "0.3.0", optional = true }
166166

@@ -177,14 +177,14 @@ hyper-openssl = { version = "0.10", optional = true }
177177

178178
[dev-dependencies]
179179
always_send = "0.1.1"
180-
clap = "4.5"
180+
clap = "4.6.0"
181181
env_logger = "0.11"
182-
tokio = { version = "1.49", features = ["full"] }
182+
tokio = { version = "1.50.0", features = ["full"] }
183183
native-tls = "0.2"
184-
pin-project = "1.1.10"
184+
pin-project = "1.1.11"
185185

186186
# Bearer authentication, used in examples
187-
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
187+
jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]}
188188

189189
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
190190
openssl = "0.10"

samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ anyhow = { version = "1", optional = true }
7070
clap-verbosity-flag = { version = "0.3", optional = true }
7171
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
7272
structopt = { version = "0.3", optional = true }
73-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
73+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
7474

7575
# Conversion
7676
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true }
6060
clap-verbosity-flag = { version = "0.3", optional = true }
6161
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
6262
structopt = { version = "0.3", optional = true }
63-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
63+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
6464

6565
# Conversion
6666
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ anyhow = { version = "1", optional = true }
6666
clap-verbosity-flag = { version = "0.3", optional = true }
6767
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
6868
structopt = { version = "0.3", optional = true }
69-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
69+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
7070

7171
# Conversion
7272
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true }
6060
clap-verbosity-flag = { version = "0.3", optional = true }
6161
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
6262
structopt = { version = "0.3", optional = true }
63-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
63+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
6464

6565
# Conversion
6666
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ anyhow = { version = "1", optional = true }
7171
clap-verbosity-flag = { version = "0.3", optional = true }
7272
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
7373
structopt = { version = "0.3", optional = true }
74-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
74+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
7575
dialoguer = { version = "0.8", optional = true }
7676

7777
# Conversion

samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true }
6060
clap-verbosity-flag = { version = "0.3", optional = true }
6161
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
6262
structopt = { version = "0.3", optional = true }
63-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
63+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
6464

6565
# Conversion
6666
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true }
6060
clap-verbosity-flag = { version = "0.3", optional = true }
6161
simple_logger = { version = "2.0", features = ["stderr"], optional = true }
6262
structopt = { version = "0.3", optional = true }
63-
tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true }
63+
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
6464

6565
# Conversion
6666
frunk = { version = "0.4.0", optional = true }

samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ validate = [ "serde_valid", "swagger/serdevalid"]
4242

4343
[dependencies]
4444
# Common
45-
async-trait = "0.1.88"
45+
async-trait = "0.1.89"
4646
chrono = { version = "0.4", features = ["serde"] }
4747
futures = "0.3"
4848
swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] }
49-
headers = "0.4.0"
50-
log = "0.4.27"
49+
headers = "0.4.1"
50+
log = "0.4.29"
5151

5252
mime = "0.3"
5353
mockall = { version = "0.14", optional = true }
@@ -67,8 +67,8 @@ multipart = { version = "0.18", default-features = false, optional = true }
6767
# Common between server and client features
6868
bytes = "1.11"
6969
http-body-util = "0.1.3"
70-
hyper = { version = "1.8", features = ["full"], optional = true }
71-
hyper-util = { version = "0.1.18", features = ["service"] }
70+
hyper = { version = "1.9.0", features = ["full"], optional = true }
71+
hyper-util = { version = "0.1.20", features = ["service"] }
7272
mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" }
7373
serde_ignored = { version = "0.1.14", optional = true }
7474
url = { version = "2.5", optional = true }
@@ -81,15 +81,15 @@ percent-encoding = { version = "2.3.2", optional = true }
8181

8282
# CLI-specific
8383
anyhow = { version = "1", optional = true }
84-
clap = { version = "4.5", features = ["env"], optional = true }
84+
clap = { version = "4.6.0", features = ["env"], optional = true }
8585
clap-verbosity-flag = { version = "3.0", optional = true }
86-
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
87-
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
86+
simple_logger = { version = "5.2.0", features = ["stderr"], optional = true }
87+
tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true }
8888

8989
# Conversion
90-
frunk = { version = "0.4.3", optional = true }
91-
frunk_derives = { version = "0.4.3", optional = true }
92-
frunk_core = { version = "0.4.3", optional = true }
90+
frunk = { version = "0.4.4", optional = true }
91+
frunk_derives = { version = "0.4.4", optional = true }
92+
frunk_core = { version = "0.4.4", optional = true }
9393
frunk-enum-derive = { version = "0.3.0", optional = true }
9494
frunk-enum-core = { version = "0.3.0", optional = true }
9595

@@ -106,14 +106,14 @@ hyper-openssl = { version = "0.10", optional = true }
106106

107107
[dev-dependencies]
108108
always_send = "0.1.1"
109-
clap = "4.5"
109+
clap = "4.6.0"
110110
env_logger = "0.11"
111-
tokio = { version = "1.49", features = ["full"] }
111+
tokio = { version = "1.50.0", features = ["full"] }
112112
native-tls = "0.2"
113-
pin-project = "1.1.10"
113+
pin-project = "1.1.11"
114114

115115
# Bearer authentication, used in examples
116-
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
116+
jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]}
117117

118118
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
119119
openssl = "0.10"

0 commit comments

Comments
 (0)