From 9342b99908e6ebcbe0faafe22ad5aeb4c631a436 Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 1 Apr 2026 12:01:40 +0100 Subject: [PATCH 1/2] Update rust-server Cargo.toml dependencies --- .../main/resources/rust-server/Cargo.mustache | 32 +++++++++---------- .../output/multipart-v3/Cargo.toml | 30 ++++++++--------- .../output/no-example-v3/Cargo.toml | 30 ++++++++--------- .../rust-server/output/openapi-v3/Cargo.toml | 32 +++++++++---------- .../rust-server/output/ops-v3/Cargo.toml | 30 ++++++++--------- .../Cargo.toml | 32 +++++++++---------- .../output/ping-bearer-auth/Cargo.toml | 30 ++++++++--------- .../output/rust-server-test/Cargo.toml | 30 ++++++++--------- 8 files changed, 123 insertions(+), 123 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache index 0bacba90a240..3d145ccb6c50 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache @@ -88,12 +88,12 @@ validate = [{{^apiUsesByteArray}}"regex",{{/apiUsesByteArray}} "serde_valid", "s [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -120,14 +120,14 @@ serde-xml-rs = "0.8" multipart = { version = "0.18", default-features = false, optional = true } {{/apiUsesMultipartFormData}} {{#apiUsesUuid}} -uuid = { version = "1.18.0", features = ["serde", "v4"]} +uuid = { version = "1.23.0", features = ["serde", "v4"]} {{/apiUsesUuid}} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } {{#apiUsesMultipartRelated}} mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" } {{/apiUsesMultipartRelated}} @@ -149,18 +149,18 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } {{#apiHasDeleteMethods}} dialoguer = { version = "0.12", optional = true } {{/apiHasDeleteMethods}} # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -177,14 +177,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml b/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml index 97443432b13f..9712bd2a7c2c 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml @@ -42,12 +42,12 @@ validate = [ "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -67,8 +67,8 @@ multipart = { version = "0.18", default-features = false, optional = true } # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -81,15 +81,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -106,14 +106,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml b/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml index fc60466f413d..9e73002e56fe 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/no-example-v3/Cargo.toml @@ -38,12 +38,12 @@ validate = ["regex", "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -60,8 +60,8 @@ validator = { version = "0.20", features = ["derive"] } # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -75,15 +75,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -100,14 +100,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml b/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml index 9e0b5fab01f5..3fdf5173ea2e 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml @@ -41,12 +41,12 @@ validate = [ "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -62,13 +62,13 @@ validator = { version = "0.20", features = ["derive"] } # Crates included if required by the API definition serde-xml-rs = "0.8" -uuid = { version = "1.18.0", features = ["serde", "v4"]} +uuid = { version = "1.23.0", features = ["serde", "v4"]} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -81,15 +81,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -106,14 +106,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml b/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml index 9f1bda594786..12c55c614ae5 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml @@ -38,12 +38,12 @@ validate = ["regex", "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -60,8 +60,8 @@ validator = { version = "0.20", features = ["derive"] } # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -75,15 +75,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -100,14 +100,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml index fc388e36b327..3835cb94a4b1 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml @@ -42,12 +42,12 @@ validate = [ "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -65,13 +65,13 @@ validator = { version = "0.20", features = ["derive"] } # Crates included if required by the API definition serde-xml-rs = "0.8" multipart = { version = "0.18", default-features = false, optional = true } -uuid = { version = "1.18.0", features = ["serde", "v4"]} +uuid = { version = "1.23.0", features = ["serde", "v4"]} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -84,16 +84,16 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } dialoguer = { version = "0.12", optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -110,14 +110,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml b/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml index 457a1605921d..92666ec67329 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/Cargo.toml @@ -38,12 +38,12 @@ validate = ["regex", "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -60,8 +60,8 @@ validator = { version = "0.20", features = ["derive"] } # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -75,15 +75,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -100,14 +100,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" diff --git a/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml b/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml index 373599e18773..8a9ac600d58a 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml +++ b/samples/server/petstore/rust-server/output/rust-server-test/Cargo.toml @@ -38,12 +38,12 @@ validate = ["regex", "serde_valid", "swagger/serdevalid"] [dependencies] # Common -async-trait = "0.1.88" +async-trait = "0.1.89" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" swagger = { version = "7.0.0", features = ["serdejson", "server", "client"] } -headers = "0.4.0" -log = "0.4.27" +headers = "0.4.1" +log = "0.4.29" mime = "0.3" mockall = { version = "0.14", optional = true } @@ -60,8 +60,8 @@ validator = { version = "0.20", features = ["derive"] } # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.8", features = ["full"], optional = true } -hyper-util = { version = "0.1.18", features = ["service"] } +hyper = { version = "1.9.0", features = ["full"], optional = true } +hyper-util = { version = "0.1.20", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -75,15 +75,15 @@ percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } -clap = { version = "4.5", features = ["env"], optional = true } +clap = { version = "4.6.0", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } -simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } +simple_logger = { version = "5.2.0", features = ["stderr"], optional = true } +tokio = { version = "1.50.0", features = ["rt-multi-thread", "macros"], optional = true } # Conversion -frunk = { version = "0.4.3", optional = true } -frunk_derives = { version = "0.4.3", optional = true } -frunk_core = { version = "0.4.3", optional = true } +frunk = { version = "0.4.4", optional = true } +frunk_derives = { version = "0.4.4", optional = true } +frunk_core = { version = "0.4.4", optional = true } frunk-enum-derive = { version = "0.3.0", optional = true } frunk-enum-core = { version = "0.3.0", optional = true } @@ -100,14 +100,14 @@ hyper-openssl = { version = "0.10", optional = true } [dev-dependencies] always_send = "0.1.1" -clap = "4.5" +clap = "4.6.0" env_logger = "0.11" -tokio = { version = "1.49", features = ["full"] } +tokio = { version = "1.50.0", features = ["full"] } native-tls = "0.2" -pin-project = "1.1.10" +pin-project = "1.1.11" # Bearer authentication, used in examples -jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} +jsonwebtoken = {version = "10.3.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] openssl = "0.10" From 8b5ee707400462e5085c0e36ad15a08dab964549 Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 1 Apr 2026 13:18:03 +0100 Subject: [PATCH 2/2] Update tokio in rust-server-deprecated to resolve CI failure --- .../src/main/resources/rust-server-deprecated/Cargo.mustache | 2 +- .../rust-server-deprecated/output/multipart-v3/Cargo.toml | 2 +- .../rust-server-deprecated/output/no-example-v3/Cargo.toml | 2 +- .../rust-server-deprecated/output/openapi-v3/Cargo.toml | 2 +- .../petstore/rust-server-deprecated/output/ops-v3/Cargo.toml | 2 +- .../petstore-with-fake-endpoints-models-for-testing/Cargo.toml | 2 +- .../rust-server-deprecated/output/ping-bearer-auth/Cargo.toml | 2 +- .../rust-server-deprecated/output/rust-server-test/Cargo.toml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache index 34bd11bf4f6c..4c9278a7cdad 100644 --- a/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server-deprecated/Cargo.mustache @@ -141,7 +141,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } {{#apiHasDeleteMethods}} dialoguer = { version = "0.8", optional = true } {{/apiHasDeleteMethods}} diff --git a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml index 41c685199a4a..31fab46999ab 100644 --- a/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/multipart-v3/Cargo.toml @@ -70,7 +70,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true } diff --git a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml index 731b3b9524e2..ce2bbe4d0c8d 100644 --- a/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/no-example-v3/Cargo.toml @@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true } diff --git a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml index 2fa7f751090a..11aa12040373 100644 --- a/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/openapi-v3/Cargo.toml @@ -66,7 +66,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true } diff --git a/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml index 1fd69798ef5d..5aef3591a2a2 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/ops-v3/Cargo.toml @@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true } diff --git a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml index 7c95dd77ad12..d6bbcbe161b0 100644 --- a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/Cargo.toml @@ -71,7 +71,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } dialoguer = { version = "0.8", optional = true } # Conversion diff --git a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml index 368152925446..679e66b75889 100644 --- a/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth/Cargo.toml @@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true } diff --git a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml index bd4588bfdb87..f88bf4449245 100644 --- a/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml +++ b/samples/server/petstore/rust-server-deprecated/output/rust-server-test/Cargo.toml @@ -60,7 +60,7 @@ anyhow = { version = "1", optional = true } clap-verbosity-flag = { version = "0.3", optional = true } simple_logger = { version = "2.0", features = ["stderr"], optional = true } structopt = { version = "0.3", optional = true } -tokio = { version = "0.2", features = ["rt-threaded", "macros", "stream"], optional = true } +tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.0", optional = true }