Skip to content

Commit

Permalink
📝 Write about TLS backend in README
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Jul 30, 2024
1 parent fe3e12e commit aff3750
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,21 @@ async fn main() {
println!("{:?}", res);
}
```

## TLS Backend

This crate depends on [reqwest](https://crates.io/crates/reqwest) as an HTTPS client. As with reqwest, you can select TLS backend through this crate's feature flags.

- `native-tls`: the system-installed TLS backend
- `rustls-tls`: the TLS library written in Rust

`native-tls` is used by default. To use only `rustls-tls`, write dependencies as:

```toml
[dependencies]
reqwest.version = "..."
reqwest.default-features = false
reqwest.features = ["rustls-tls"]
```

For more information, see [docs in reqwest::tls](https://docs.rs/reqwest/0.12/reqwest/tls/index.html).

0 comments on commit aff3750

Please sign in to comment.