Skip to content

Commit de464ce

Browse files
authored
Refresh some dependencies in the Rust server generator (#22710)
1 parent e7287d1 commit de464ce

8 files changed

Lines changed: 56 additions & 56 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ regex = "1.12"
101101

102102
serde = { version = "1.0", features = ["derive"] }
103103
serde_json = "1.0"
104-
serde_valid = { version = "0.16", optional = true }
104+
serde_valid = { version = "2.0", optional = true }
105105

106106
validator = { version = "0.20", features = ["derive"] }
107107

@@ -119,8 +119,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]}
119119
# Common between server and client features
120120
bytes = "1.11"
121121
http-body-util = "0.1.3"
122-
hyper = { version = "1.6", features = ["full"], optional = true }
123-
hyper-util = { version = "0.1.17", features = ["service"] }
122+
hyper = { version = "1.8", features = ["full"], optional = true }
123+
hyper-util = { version = "0.1.18", features = ["service"] }
124124
{{#apiUsesMultipartRelated}}
125125
mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" }
126126
{{/apiUsesMultipartRelated}}
@@ -138,14 +138,14 @@ tower-service = "0.3.3"
138138
lazy_static = { version = "1.5", optional = true }
139139
regex = { version = "1.12", optional = true }
140140
{{/apiUsesByteArray}}
141-
percent-encoding = { version = "2.3.1", optional = true }
141+
percent-encoding = { version = "2.3.2", optional = true }
142142

143143
# CLI-specific
144144
anyhow = { version = "1", optional = true }
145145
clap = { version = "4.5", features = ["env"], optional = true }
146146
clap-verbosity-flag = { version = "3.0", optional = true }
147147
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
148-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
148+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
149149
{{#apiHasDeleteMethods}}
150150
dialoguer = { version = "0.12", optional = true }
151151
{{/apiHasDeleteMethods}}
@@ -161,12 +161,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
161161
always_send = "0.1.1"
162162
clap = "4.5"
163163
env_logger = "0.11"
164-
tokio = { version = "1.48", features = ["full"] }
164+
tokio = { version = "1.49", features = ["full"] }
165165
native-tls = "0.2"
166166
pin-project = "1.1.10"
167167

168168
# Bearer authentication, used in examples
169-
jsonwebtoken = "9.3.1"
169+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
170170

171171
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
172172
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ regex = "1.12"
5353

5454
serde = { version = "1.0", features = ["derive"] }
5555
serde_json = "1.0"
56-
serde_valid = { version = "0.16", optional = true }
56+
serde_valid = { version = "2.0", optional = true }
5757

5858
validator = { version = "0.20", features = ["derive"] }
5959

@@ -63,8 +63,8 @@ multipart = { version = "0.18", default-features = false, optional = true }
6363
# Common between server and client features
6464
bytes = "1.11"
6565
http-body-util = "0.1.3"
66-
hyper = { version = "1.6", features = ["full"], optional = true }
67-
hyper-util = { version = "0.1.17", features = ["service"] }
66+
hyper = { version = "1.8", features = ["full"], optional = true }
67+
hyper-util = { version = "0.1.18", features = ["service"] }
6868
mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" }
6969
serde_ignored = { version = "0.1.14", optional = true }
7070
url = { version = "2.5", optional = true }
@@ -73,14 +73,14 @@ url = { version = "2.5", optional = true }
7373
tower-service = "0.3.3"
7474

7575
# Server, and client callback-specific
76-
percent-encoding = { version = "2.3.1", optional = true }
76+
percent-encoding = { version = "2.3.2", optional = true }
7777

7878
# CLI-specific
7979
anyhow = { version = "1", optional = true }
8080
clap = { version = "4.5", features = ["env"], optional = true }
8181
clap-verbosity-flag = { version = "3.0", optional = true }
8282
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
83-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
83+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
8484

8585
# Conversion
8686
frunk = { version = "0.4.3", optional = true }
@@ -93,12 +93,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
9393
always_send = "0.1.1"
9494
clap = "4.5"
9595
env_logger = "0.11"
96-
tokio = { version = "1.48", features = ["full"] }
96+
tokio = { version = "1.49", features = ["full"] }
9797
native-tls = "0.2"
9898
pin-project = "1.1.10"
9999

100100
# Bearer authentication, used in examples
101-
jsonwebtoken = "9.3.1"
101+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
102102

103103
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
104104
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true }
4747

4848
serde = { version = "1.0", features = ["derive"] }
4949
serde_json = "1.0"
50-
serde_valid = { version = "0.16", optional = true }
50+
serde_valid = { version = "2.0", optional = true }
5151

5252
validator = { version = "0.20", features = ["derive"] }
5353

@@ -56,8 +56,8 @@ validator = { version = "0.20", features = ["derive"] }
5656
# Common between server and client features
5757
bytes = "1.11"
5858
http-body-util = "0.1.3"
59-
hyper = { version = "1.6", features = ["full"], optional = true }
60-
hyper-util = { version = "0.1.17", features = ["service"] }
59+
hyper = { version = "1.8", features = ["full"], optional = true }
60+
hyper-util = { version = "0.1.18", features = ["service"] }
6161
serde_ignored = { version = "0.1.14", optional = true }
6262
url = { version = "2.5", optional = true }
6363

@@ -67,14 +67,14 @@ tower-service = "0.3.3"
6767
# Server, and client callback-specific
6868
lazy_static = { version = "1.5", optional = true }
6969
regex = { version = "1.12", optional = true }
70-
percent-encoding = { version = "2.3.1", optional = true }
70+
percent-encoding = { version = "2.3.2", optional = true }
7171

7272
# CLI-specific
7373
anyhow = { version = "1", optional = true }
7474
clap = { version = "4.5", features = ["env"], optional = true }
7575
clap-verbosity-flag = { version = "3.0", optional = true }
7676
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
77-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
77+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
7878

7979
# Conversion
8080
frunk = { version = "0.4.3", optional = true }
@@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
8787
always_send = "0.1.1"
8888
clap = "4.5"
8989
env_logger = "0.11"
90-
tokio = { version = "1.48", features = ["full"] }
90+
tokio = { version = "1.49", features = ["full"] }
9191
native-tls = "0.2"
9292
pin-project = "1.1.10"
9393

9494
# Bearer authentication, used in examples
95-
jsonwebtoken = "9.3.1"
95+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
9696

9797
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
9898
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ regex = "1.12"
5252

5353
serde = { version = "1.0", features = ["derive"] }
5454
serde_json = "1.0"
55-
serde_valid = { version = "0.16", optional = true }
55+
serde_valid = { version = "2.0", optional = true }
5656

5757
validator = { version = "0.20", features = ["derive"] }
5858

@@ -63,8 +63,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]}
6363
# Common between server and client features
6464
bytes = "1.11"
6565
http-body-util = "0.1.3"
66-
hyper = { version = "1.6", features = ["full"], optional = true }
67-
hyper-util = { version = "0.1.17", features = ["service"] }
66+
hyper = { version = "1.8", features = ["full"], optional = true }
67+
hyper-util = { version = "0.1.18", features = ["service"] }
6868
serde_ignored = { version = "0.1.14", optional = true }
6969
url = { version = "2.5", optional = true }
7070

@@ -73,14 +73,14 @@ serde_urlencoded = { version = "0.7.1", optional = true }
7373
tower-service = "0.3.3"
7474

7575
# Server, and client callback-specific
76-
percent-encoding = { version = "2.3.1", optional = true }
76+
percent-encoding = { version = "2.3.2", optional = true }
7777

7878
# CLI-specific
7979
anyhow = { version = "1", optional = true }
8080
clap = { version = "4.5", features = ["env"], optional = true }
8181
clap-verbosity-flag = { version = "3.0", optional = true }
8282
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
83-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
83+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
8484

8585
# Conversion
8686
frunk = { version = "0.4.3", optional = true }
@@ -93,12 +93,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
9393
always_send = "0.1.1"
9494
clap = "4.5"
9595
env_logger = "0.11"
96-
tokio = { version = "1.48", features = ["full"] }
96+
tokio = { version = "1.49", features = ["full"] }
9797
native-tls = "0.2"
9898
pin-project = "1.1.10"
9999

100100
# Bearer authentication, used in examples
101-
jsonwebtoken = "9.3.1"
101+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
102102

103103
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
104104
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true }
4747

4848
serde = { version = "1.0", features = ["derive"] }
4949
serde_json = "1.0"
50-
serde_valid = { version = "0.16", optional = true }
50+
serde_valid = { version = "2.0", optional = true }
5151

5252
validator = { version = "0.20", features = ["derive"] }
5353

@@ -56,8 +56,8 @@ validator = { version = "0.20", features = ["derive"] }
5656
# Common between server and client features
5757
bytes = "1.11"
5858
http-body-util = "0.1.3"
59-
hyper = { version = "1.6", features = ["full"], optional = true }
60-
hyper-util = { version = "0.1.17", features = ["service"] }
59+
hyper = { version = "1.8", features = ["full"], optional = true }
60+
hyper-util = { version = "0.1.18", features = ["service"] }
6161
serde_ignored = { version = "0.1.14", optional = true }
6262
url = { version = "2.5", optional = true }
6363

@@ -67,14 +67,14 @@ tower-service = "0.3.3"
6767
# Server, and client callback-specific
6868
lazy_static = { version = "1.5", optional = true }
6969
regex = { version = "1.12", optional = true }
70-
percent-encoding = { version = "2.3.1", optional = true }
70+
percent-encoding = { version = "2.3.2", optional = true }
7171

7272
# CLI-specific
7373
anyhow = { version = "1", optional = true }
7474
clap = { version = "4.5", features = ["env"], optional = true }
7575
clap-verbosity-flag = { version = "3.0", optional = true }
7676
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
77-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
77+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
7878

7979
# Conversion
8080
frunk = { version = "0.4.3", optional = true }
@@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
8787
always_send = "0.1.1"
8888
clap = "4.5"
8989
env_logger = "0.11"
90-
tokio = { version = "1.48", features = ["full"] }
90+
tokio = { version = "1.49", features = ["full"] }
9191
native-tls = "0.2"
9292
pin-project = "1.1.10"
9393

9494
# Bearer authentication, used in examples
95-
jsonwebtoken = "9.3.1"
95+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
9696

9797
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
9898
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ regex = "1.12"
5353

5454
serde = { version = "1.0", features = ["derive"] }
5555
serde_json = "1.0"
56-
serde_valid = { version = "0.16", optional = true }
56+
serde_valid = { version = "2.0", optional = true }
5757

5858
validator = { version = "0.20", features = ["derive"] }
5959

@@ -65,8 +65,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]}
6565
# Common between server and client features
6666
bytes = "1.11"
6767
http-body-util = "0.1.3"
68-
hyper = { version = "1.6", features = ["full"], optional = true }
69-
hyper-util = { version = "0.1.17", features = ["service"] }
68+
hyper = { version = "1.8", features = ["full"], optional = true }
69+
hyper-util = { version = "0.1.18", features = ["service"] }
7070
serde_ignored = { version = "0.1.14", optional = true }
7171
url = { version = "2.5", optional = true }
7272

@@ -75,14 +75,14 @@ serde_urlencoded = { version = "0.7.1", optional = true }
7575
tower-service = "0.3.3"
7676

7777
# Server, and client callback-specific
78-
percent-encoding = { version = "2.3.1", optional = true }
78+
percent-encoding = { version = "2.3.2", optional = true }
7979

8080
# CLI-specific
8181
anyhow = { version = "1", optional = true }
8282
clap = { version = "4.5", features = ["env"], optional = true }
8383
clap-verbosity-flag = { version = "3.0", optional = true }
8484
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
85-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
85+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
8686
dialoguer = { version = "0.12", optional = true }
8787

8888
# Conversion
@@ -96,12 +96,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
9696
always_send = "0.1.1"
9797
clap = "4.5"
9898
env_logger = "0.11"
99-
tokio = { version = "1.48", features = ["full"] }
99+
tokio = { version = "1.49", features = ["full"] }
100100
native-tls = "0.2"
101101
pin-project = "1.1.10"
102102

103103
# Bearer authentication, used in examples
104-
jsonwebtoken = "9.3.1"
104+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
105105

106106
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
107107
tokio-openssl = "0.6"

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true }
4747

4848
serde = { version = "1.0", features = ["derive"] }
4949
serde_json = "1.0"
50-
serde_valid = { version = "0.16", optional = true }
50+
serde_valid = { version = "2.0", optional = true }
5151

5252
validator = { version = "0.20", features = ["derive"] }
5353

@@ -56,8 +56,8 @@ validator = { version = "0.20", features = ["derive"] }
5656
# Common between server and client features
5757
bytes = "1.11"
5858
http-body-util = "0.1.3"
59-
hyper = { version = "1.6", features = ["full"], optional = true }
60-
hyper-util = { version = "0.1.17", features = ["service"] }
59+
hyper = { version = "1.8", features = ["full"], optional = true }
60+
hyper-util = { version = "0.1.18", features = ["service"] }
6161
serde_ignored = { version = "0.1.14", optional = true }
6262
url = { version = "2.5", optional = true }
6363

@@ -67,14 +67,14 @@ tower-service = "0.3.3"
6767
# Server, and client callback-specific
6868
lazy_static = { version = "1.5", optional = true }
6969
regex = { version = "1.12", optional = true }
70-
percent-encoding = { version = "2.3.1", optional = true }
70+
percent-encoding = { version = "2.3.2", optional = true }
7171

7272
# CLI-specific
7373
anyhow = { version = "1", optional = true }
7474
clap = { version = "4.5", features = ["env"], optional = true }
7575
clap-verbosity-flag = { version = "3.0", optional = true }
7676
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
77-
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
77+
tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true }
7878

7979
# Conversion
8080
frunk = { version = "0.4.3", optional = true }
@@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true }
8787
always_send = "0.1.1"
8888
clap = "4.5"
8989
env_logger = "0.11"
90-
tokio = { version = "1.48", features = ["full"] }
90+
tokio = { version = "1.49", features = ["full"] }
9191
native-tls = "0.2"
9292
pin-project = "1.1.10"
9393

9494
# Bearer authentication, used in examples
95-
jsonwebtoken = "9.3.1"
95+
jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]}
9696

9797
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
9898
tokio-openssl = "0.6"

0 commit comments

Comments
 (0)