Jean-Marc Le Roux
7ab9364094
[Rust] Configurable default features from reqwest dependency ( #22041 )
...
* 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
2025-10-02 01:47:08 +08:00
..
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2024-02-13 16:18:05 +08:00
2025-08-12 11:13:16 +08:00
2025-08-12 11:13:16 +08:00
2024-09-19 09:34:51 +08:00
2023-12-13 15:07:18 +08:00
2024-10-09 01:38:12 +08:00
2023-12-13 15:07:18 +08:00
2025-08-07 10:01:55 +08:00
2025-07-16 15:32:28 +08:00
2024-05-15 14:51:59 +08:00
2024-09-24 01:05:07 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-06-07 12:24:39 +08:00
2024-02-23 16:27:26 +08:00
2023-12-13 15:07:18 +08:00
2024-02-23 16:27:26 +08:00
2023-12-13 15:07:18 +08:00
2025-08-12 11:13:16 +08:00
2025-08-12 11:13:16 +08:00
2024-02-13 16:18:05 +08:00
2025-08-27 13:51:46 +08:00
2024-04-28 22:09:10 +08:00
2024-02-13 16:18:05 +08:00
2023-12-13 15:07:18 +08:00
2025-04-25 16:17:32 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2024-09-07 17:18:06 +08:00
2024-09-07 16:45:42 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2024-11-17 10:48:19 +08:00
2023-12-13 15:07:18 +08:00
2024-02-20 15:37:44 +08:00
2023-12-13 15:07:18 +08:00
2024-07-30 18:32:54 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-04-27 15:00:51 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2024-02-13 16:18:05 +08:00
2024-02-13 16:18:05 +08:00
2025-09-21 23:22:39 +08:00
2025-09-16 01:51:12 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-07-28 20:03:54 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-07-28 20:03:54 +08:00
2023-12-13 15:07:18 +08:00
2023-05-17 00:48:58 +08:00
2024-06-05 10:57:22 +08:00
2024-10-17 15:48:38 +02:00
2024-12-22 23:11:54 +08:00
2025-09-14 17:11:06 +08:00
2025-09-24 15:18:37 +08:00
2025-09-24 15:18:37 +08:00
2025-09-24 15:18:37 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-04-27 15:00:51 +08:00
2025-09-14 17:11:06 +08:00
2024-03-09 16:56:26 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-05-17 00:48:58 +08:00
2023-12-13 15:07:18 +08:00
2025-05-16 14:37:49 +08:00
2024-12-13 01:15:03 +08:00
2025-09-16 02:13:08 +08:00
2024-03-09 17:42:33 +08:00
2024-05-21 13:53:44 +08:00
2025-04-25 08:45:47 +01:00
2024-03-09 17:42:33 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-08-25 17:27:27 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2025-06-09 19:26:53 +08:00
2023-12-13 15:07:18 +08:00
2025-01-11 15:44:42 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-04-17 13:11:34 +08:00
2024-04-03 16:43:51 +08:00
2024-04-03 16:43:51 +08:00
2024-06-04 12:40:29 +08:00
2024-04-03 16:43:51 +08:00
2023-12-13 16:13:31 +08:00
2025-09-27 15:30:50 +08:00
2023-12-13 15:07:18 +08:00
2025-07-16 15:32:28 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-09-27 16:01:37 +08:00
2025-07-03 01:55:33 +08:00
2023-12-13 15:07:18 +08:00
2025-10-02 01:47:08 +08:00
2025-04-30 01:46:49 +08:00
2023-12-13 15:07:18 +08:00
2024-04-24 23:50:14 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2024-01-10 11:50:48 +08:00
2024-10-05 17:08:14 +08:00
2025-09-16 13:59:00 +08:00
2023-12-22 10:58:27 +08:00
2023-12-13 15:07:18 +08:00
2025-09-06 13:36:44 +08:00
2023-12-13 15:07:18 +08:00
2025-04-09 16:02:34 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2025-09-21 23:22:39 +08:00
2024-12-31 16:51:18 +08:00
2025-08-31 10:08:17 +08:00
2023-12-13 15:07:18 +08:00
2023-05-17 00:48:58 +08:00
2025-07-15 11:44:12 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-07-31 14:37:44 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-06-29 13:04:22 +02:00
2025-07-15 09:25:09 +02:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00
2023-12-13 15:07:18 +08:00