Skip to content

Commit b474036

Browse files
authored
feat(rust): add the native-tls (default) and rustls Cargo features for reqwest
1 parent bdfbb32 commit b474036

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ async-trait = "^0.1"
8686
google-cloud-token = "^0.1"
8787
{{/supportTokenSource}}
8888
{{/supportAsync}}
89+
90+
[features]
91+
default = ["native-tls"]
92+
native-tls = ["reqwest/native-tls"]
93+
rustls = ["reqwest/rustls-tls"]
8994
{{/reqwest}}
9095
{{#reqwestTrait}}
9196
async-trait = "^0.1"

0 commit comments

Comments
 (0)