diff options
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -75,6 +75,7 @@ features = ["serde"] [dependencies.reqwest] version = "0.11" features = ["multipart", "json", "stream"] +default-features = false [dependencies.serde] version = "1" @@ -25,6 +25,14 @@ Alternatively, run the following command: $ cargo add mastodon-async ~~~ +### Use Rustls instead of OpenSSL + +To use Rustls instead of OpenSSL for HTTPS request, define the dependency as follows + +```toml +mastodon-async = { version = "1", default-features = false, features = ["rustls-tls"] } +``` + ## A Note on Debugging This library offers structured logging. To get better information about bugs or how something is working, I recommend adding the femme crate as a dependency, |