forked from loafle/openapi-generator-original
feat: [Rust][client] Add option to use rustls for reqwest instead of openssl (#21001)
* feat: [Rust][client] Add option to use rustls for reqwest instead of openssl * generated changes Summary: ./bin/generate-samples.sh ./bin/configs/*.yaml || exit ./bin/utils/export_docs_generators.sh || exit
This commit is contained in:
parent
9bac31859c
commit
b2abf36af6
@ -63,13 +63,13 @@ secrecy = "0.8.0"
|
|||||||
{{/withAWSV4Signature}}
|
{{/withAWSV4Signature}}
|
||||||
{{#reqwest}}
|
{{#reqwest}}
|
||||||
{{^supportAsync}}
|
{{^supportAsync}}
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
{{#supportMiddleware}}
|
{{#supportMiddleware}}
|
||||||
reqwest-middleware = { version = "^0.4", features = ["json", "blocking", "multipart"] }
|
reqwest-middleware = { version = "^0.4", features = ["json", "blocking", "multipart"] }
|
||||||
{{/supportMiddleware}}
|
{{/supportMiddleware}}
|
||||||
{{/supportAsync}}
|
{{/supportAsync}}
|
||||||
{{#supportAsync}}
|
{{#supportAsync}}
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
{{#supportMiddleware}}
|
{{#supportMiddleware}}
|
||||||
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
||||||
{{/supportMiddleware}}
|
{{/supportMiddleware}}
|
||||||
@ -82,7 +82,7 @@ google-cloud-token = "^0.1"
|
|||||||
{{/reqwest}}
|
{{/reqwest}}
|
||||||
{{#reqwestTrait}}
|
{{#reqwestTrait}}
|
||||||
async-trait = "^0.1"
|
async-trait = "^0.1"
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
{{#supportMiddleware}}
|
{{#supportMiddleware}}
|
||||||
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
||||||
{{/supportMiddleware}}
|
{{/supportMiddleware}}
|
||||||
@ -97,6 +97,9 @@ mockall = { version = "^0.13", optional = true}
|
|||||||
bon = { version = "2.3", optional = true }
|
bon = { version = "2.3", optional = true }
|
||||||
{{/useBonBuilder}}
|
{{/useBonBuilder}}
|
||||||
[features]
|
[features]
|
||||||
|
default = ["native-tls"]
|
||||||
|
native-tls = ["reqwest/native-tls"]
|
||||||
|
rustls = ["reqwest/rustls-tls"]
|
||||||
{{#mockall}}
|
{{#mockall}}
|
||||||
mockall = ["dep:mockall"]
|
mockall = ["dep:mockall"]
|
||||||
{{/mockall}}
|
{{/mockall}}
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -11,4 +11,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -12,4 +12,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -14,7 +14,10 @@ serde_repr = "^0.1"
|
|||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
async-trait = "^0.1"
|
async-trait = "^0.1"
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
mockall = { version = "^0.13", optional = true}
|
mockall = { version = "^0.13", optional = true}
|
||||||
[features]
|
[features]
|
||||||
|
default = ["native-tls"]
|
||||||
|
native-tls = ["reqwest/native-tls"]
|
||||||
|
rustls = ["reqwest/rustls-tls"]
|
||||||
mockall = ["dep:mockall"]
|
mockall = ["dep:mockall"]
|
||||||
|
@ -11,4 +11,4 @@ serde = { version = "^1.0", features = ["derive"] }
|
|||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -13,5 +13,5 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
|
||||||
|
@ -13,7 +13,7 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
async-trait = "^0.1"
|
async-trait = "^0.1"
|
||||||
# TODO: propose to Yoshidan to externalize this as non google related crate, so that it can easily be extended for other cloud providers.
|
# TODO: propose to Yoshidan to externalize this as non google related crate, so that it can easily be extended for other cloud providers.
|
||||||
google-cloud-token = "^0.1"
|
google-cloud-token = "^0.1"
|
||||||
|
@ -13,4 +13,4 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
|
@ -13,4 +13,4 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
|
||||||
|
@ -16,4 +16,4 @@ uuid = { version = "^1.8", features = ["serde", "v4"] }
|
|||||||
aws-sigv4 = "0.3.0"
|
aws-sigv4 = "0.3.0"
|
||||||
http = "0.2.5"
|
http = "0.2.5"
|
||||||
secrecy = "0.8.0"
|
secrecy = "0.8.0"
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -13,4 +13,4 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
@ -13,4 +13,4 @@ serde_json = "^1.0"
|
|||||||
serde_repr = "^0.1"
|
serde_repr = "^0.1"
|
||||||
url = "^2.5"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
reqwest = { version = "^0.12", default-features = false, features = ["json", "blocking", "multipart"] }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user