Is your feature request related to a problem? Please describe.
The Rust client SDK generator has 3 Cargo feature related problems:
- The Cargo feature to chose between
native-tls and rustls-tls is not made available for the reqwest library (only the reqwest-trait library). As a result, a transitive dependency to openssl-sys is pulled. Which is not suitable for some targets.
- The feature naming is inconsistent with the rest of the ecosystem: the
rustls feature should be called rustls-tls.
Describe the solution you'd like
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
[features]
default = ["native-tls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls"]
Describe alternatives you've considered
Overriding Cargo.mustache works. But I'm sure I'm not the only one with this problem.
Additional context
I will open a PR.
Is your feature request related to a problem? Please describe.
The Rust client SDK generator has 3 Cargo feature related problems:
native-tlsandrustls-tlsis not made available for thereqwestlibrary (only thereqwest-traitlibrary). As a result, a transitive dependency toopenssl-sysis pulled. Which is not suitable for some targets.rustlsfeature should be calledrustls-tls.Describe the solution you'd like
Describe alternatives you've considered
Overriding
Cargo.mustacheworks. But I'm sure I'm not the only one with this problem.Additional context
I will open a PR.