mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-13 16:03:43 +00:00
* fix(rust): Remove default features from reqwest dependency This change removes the default features (specifically native-tls) from the reqwest dependency in the Rust client generator. This allows users to explicitly choose their TLS backend without automatically including openssl-sys as a transitive dependency. Users can now explicitly enable TLS backends using feature flags: - native-tls - rustls-tls - default-tls Fixes #21933 * feat(rust): Add reqwestDefaultFeatures option with backward-compatible default This change adds a new generator option `reqwestDefaultFeatures` that allows users to configure the default Cargo features for the reqwest dependency. The option accepts: - An array of strings in YAML config: reqwestDefaultFeatures: ["native-tls"] - A comma-separated string via CLI: --additional-properties=reqwestDefaultFeatures=native-tls - An empty value for no defaults: reqwestDefaultFeatures: [] Default value: ["native-tls"] (maintains backward compatibility) This addresses the feedback in #21933 to make the change opt-in rather than breaking existing users. Users can now: - Keep the current behavior (default) - Opt-out: reqwestDefaultFeatures: [] - Use alternative TLS: reqwestDefaultFeatures: ["rustls-tls"] - Combine features: reqwestDefaultFeatures: ["native-tls", "cookies"] Fixes #21933