Cargo Features

[dependencies]
openai-api-rs = { version = "5.2.4", default-features = false, features = ["rustls", "default-tls"] }
default = default-tls

The default-tls feature is set by default whenever openai-api-rs is added without default-features = false somewhere in the dependency tree.

rustls

Enables rustls-tls of reqwest, rustls-tls-webpki-roots of tokio-tungstenite ^0.24.0

default-tls default

Enables native-tls of tokio-tungstenite ^0.24.0 and default-tls of reqwest

reqwest:

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

openai-api-rs has 3 features without comments.