mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-26 10:04:17 +02:00
Allow configuring TLS backend (#386)
This commit is contained in:
parent
120e2a92c2
commit
09ef7f534e
9 changed files with 228 additions and 47 deletions
|
|
@ -32,3 +32,21 @@ fetched from the latest `tldr-pages/tldr` GitHub release.
|
|||
[updates]
|
||||
archive_source = https://my-company.example.com/tldr/
|
||||
|
||||
### `tls_backend`
|
||||
|
||||
Specifies which TLS backend to use. Try changing this setting if you encounter certificate errors.
|
||||
|
||||
Available options:
|
||||
- `rustls-with-native-roots` - [Rustls][rustls] (a TLS library in Rust) with native roots
|
||||
- `rustls-with-webpki-roots` - Rustls with [WebPKI][rustls-webpki] roots
|
||||
- `native-tls` - Native TLS
|
||||
- SChannel on Windows
|
||||
- Secure Transport on macOS
|
||||
- OpenSSL on other platforms
|
||||
|
||||
[updates]
|
||||
tls_backend = "native-tls"
|
||||
|
||||
|
||||
[rustls]: https://github.com/rustls/rustls
|
||||
[rustls-webpki]: https://github.com/rustls/webpki
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ Release build:
|
|||
|
||||
Release build with bundled CA roots:
|
||||
|
||||
$ cargo build --release --no-default-features --features webpki-roots
|
||||
$ cargo build --release --no-default-features --features rustls-with-webpki-roots
|
||||
|
||||
Debug build with logging support:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue