Skip to content

add native-tls & rustls features - #10

Open
fengalin wants to merge 1 commit into
nickblt:mainfrom
fengalin:tls-features
Open

add native-tls & rustls features#10
fengalin wants to merge 1 commit into
nickblt:mainfrom
fengalin:tls-features

Conversation

@fengalin

@fengalin fengalin commented Jul 13, 2026

Copy link
Copy Markdown

When cross-compiling, it can be convenient to avoid linking to openssl.
This commit adds a 'native-tls' feature which is selected by default so as to
retain current behaviour. The 'rustls-*' features allows using rustls instead of
openssl.

Compiling with, for instance:

default-features = false, features = ["rustls-native-roots"]

no longer pulls openssl.

When cross-compiling, it can be convenient to avoid linking to openssl.
This commit adds a 'native-tls' feature which is selected by default so as to
retain current behaviour. The 'rustls-*' features allows using rustls instead of
openssl.

Compiling with, for instance:

````
default-features = false, features = ["rustls-native-roots"]
```

no longer pulls openssl.
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