Skip to content

Conversation

@my4ng
Copy link
Contributor

@my4ng my4ng commented Nov 14, 2025

Currently, the rustls TLS backend from reqwest is always included and used even when the rustls feature is not enabled, via the use_rustls_tls function call.

This is not only unexpected behaviour but also increases the size of application binaries since both the default (native_tls) and rustls backends are included.

When only rustls is needed, use the rustls feature and disable the default features.

Currently, the rustls TLS backend from reqwest is always included and
used even when the `rustls` feature is _not_ enabled, via the
`use_rustls_tls` function call.

This is not only unexpected behaviour but also increases the size of
application binaries since both the default (native_tls) and rustls
backends are included.

When _only_ rustls is needed, use the `rustls` feature _and_ disable
the default features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant