Skip to content

Commit 258302c

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

18 files changed

Lines changed: 662 additions & 3 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)