diff --git a/Cargo.toml b/Cargo.toml index afc29d4..dd914d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,6 +75,7 @@ features = ["serde"] [dependencies.reqwest] version = "0.11" features = ["multipart", "json", "stream"] +default-features = false [dependencies.serde] version = "1" diff --git a/README.md b/README.md index 52ca7e1..efe614f 100644 --- a/README.md +++ b/README.md @@ -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,