From 86dd1475d587afbc6b649594667093e3ac400e2d Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 16 Jan 2026 12:19:43 +0000 Subject: [PATCH] Refresh some dependencies in the Rust server generator --- .../src/main/resources/rust-server/Cargo.mustache | 14 +++++++------- .../rust-server/output/multipart-v3/Cargo.toml | 14 +++++++------- .../rust-server/output/no-example-v3/Cargo.toml | 14 +++++++------- .../rust-server/output/openapi-v3/Cargo.toml | 14 +++++++------- .../petstore/rust-server/output/ops-v3/Cargo.toml | 14 +++++++------- .../Cargo.toml | 14 +++++++------- .../rust-server/output/ping-bearer-auth/Cargo.toml | 14 +++++++------- .../rust-server/output/rust-server-test/Cargo.toml | 14 +++++++------- 8 files changed, 56 insertions(+), 56 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 d796b065ddf0..fe169216841c 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache @@ -101,7 +101,7 @@ regex = "1.12" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -119,8 +119,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } {{#apiUsesMultipartRelated}} mime_multipart = { version = "0.10", optional = true, package = "mime-multipart-hyper1" } {{/apiUsesMultipartRelated}} @@ -138,14 +138,14 @@ tower-service = "0.3.3" lazy_static = { version = "1.5", optional = true } regex = { version = "1.12", optional = true } {{/apiUsesByteArray}} -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } {{#apiHasDeleteMethods}} dialoguer = { version = "0.12", optional = true } {{/apiHasDeleteMethods}} @@ -161,12 +161,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 f00467da399a..11dde870fb8f 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/multipart-v3/Cargo.toml @@ -53,7 +53,7 @@ regex = "1.12" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -63,8 +63,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.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", 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 } @@ -73,14 +73,14 @@ url = { version = "2.5", optional = true } tower-service = "0.3.3" # Server, and client callback-specific -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -93,12 +93,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 99aeb2075e18..c67e31f2c818 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 @@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -56,8 +56,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.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -67,14 +67,14 @@ tower-service = "0.3.3" # Server, and client callback-specific lazy_static = { version = "1.5", optional = true } regex = { version = "1.12", optional = true } -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 18e93e674b22..4bb5c8f63af7 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/openapi-v3/Cargo.toml @@ -52,7 +52,7 @@ regex = "1.12" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -63,8 +63,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -73,14 +73,14 @@ serde_urlencoded = { version = "0.7.1", optional = true } tower-service = "0.3.3" # Server, and client callback-specific -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -93,12 +93,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 57e58e5efebe..2aa4340664c7 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml +++ b/samples/server/petstore/rust-server/output/ops-v3/Cargo.toml @@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -56,8 +56,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.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -67,14 +67,14 @@ tower-service = "0.3.3" # Server, and client callback-specific lazy_static = { version = "1.5", optional = true } regex = { version = "1.12", optional = true } -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 3926fc6aeeac..afb7740ea680 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 @@ -53,7 +53,7 @@ regex = "1.12" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -65,8 +65,8 @@ uuid = { version = "1.18.0", features = ["serde", "v4"]} # Common between server and client features bytes = "1.11" http-body-util = "0.1.3" -hyper = { version = "1.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -75,14 +75,14 @@ serde_urlencoded = { version = "0.7.1", optional = true } tower-service = "0.3.3" # Server, and client callback-specific -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } dialoguer = { version = "0.12", optional = true } # Conversion @@ -96,12 +96,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 a1b3b9d8141f..36d6fcdc04b7 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 @@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -56,8 +56,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.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -67,14 +67,14 @@ tower-service = "0.3.3" # Server, and client callback-specific lazy_static = { version = "1.5", optional = true } regex = { version = "1.12", optional = true } -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6" 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 ce87ff207e34..c5bde100d3dc 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 @@ -47,7 +47,7 @@ mockall = { version = "0.13.1", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_valid = { version = "0.16", optional = true } +serde_valid = { version = "2.0", optional = true } validator = { version = "0.20", features = ["derive"] } @@ -56,8 +56,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.6", features = ["full"], optional = true } -hyper-util = { version = "0.1.17", features = ["service"] } +hyper = { version = "1.8", features = ["full"], optional = true } +hyper-util = { version = "0.1.18", features = ["service"] } serde_ignored = { version = "0.1.14", optional = true } url = { version = "2.5", optional = true } @@ -67,14 +67,14 @@ tower-service = "0.3.3" # Server, and client callback-specific lazy_static = { version = "1.5", optional = true } regex = { version = "1.12", optional = true } -percent-encoding = { version = "2.3.1", optional = true } +percent-encoding = { version = "2.3.2", optional = true } # CLI-specific anyhow = { version = "1", optional = true } clap = { version = "4.5", features = ["env"], optional = true } clap-verbosity-flag = { version = "3.0", optional = true } simple_logger = { version = "5.0", features = ["stderr"], optional = true } -tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true } +tokio = { version = "1.49", features = ["rt-multi-thread", "macros"], optional = true } # Conversion frunk = { version = "0.4.3", optional = true } @@ -87,12 +87,12 @@ frunk-enum-core = { version = "0.3.0", optional = true } always_send = "0.1.1" clap = "4.5" env_logger = "0.11" -tokio = { version = "1.48", features = ["full"] } +tokio = { version = "1.49", features = ["full"] } native-tls = "0.2" pin-project = "1.1.10" # Bearer authentication, used in examples -jsonwebtoken = "9.3.1" +jsonwebtoken = {version = "10.0.0", features = ["rust_crypto"]} [target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies] tokio-openssl = "0.6"