diff --git a/modules/openapi-generator/src/main/resources/rust/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust/Cargo.mustache index 264ae44d594..41299d8cebf 100644 --- a/modules/openapi-generator/src/main/resources/rust/Cargo.mustache +++ b/modules/openapi-generator/src/main/resources/rust/Cargo.mustache @@ -21,9 +21,9 @@ reqwest = "~0.9" {{/supportAsync}} {{#supportAsync}} [dependencies.reqwest] -version = "^0.10" +version = "^0.11" default-features = false -features = ["json"] +features = ["json", "multipart"] {{/supportAsync}} {{/reqwest}} diff --git a/samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml b/samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml index 18eb264f99c..d8ff9713f72 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml +++ b/samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml @@ -10,8 +10,8 @@ serde_derive = "^1.0" serde_json = "^1.0" url = "1.5" [dependencies.reqwest] -version = "^0.10" +version = "^0.11" default-features = false -features = ["json"] +features = ["json", "multipart"] [dev-dependencies]