summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Boggs <scott@tams.tech>2023-06-16 08:05:00 -0400
committerGitHub <noreply@github.com>2023-06-16 08:05:00 -0400
commit7c09814bba8f879d57c7b26fe68e21acb8c68424 (patch)
tree8fe8ff5c6c2da90378999c9c1d428373adb5999e
parenta8dcd93bf460ae64549d2ed94825c1450e979902 (diff)
parent6ecde64fc33c440885e0732e11c249e11aaca5d7 (diff)
Merge pull request #106 from vbrandl/fix/openssl-dependency
Disable default features for reqwest
-rw-r--r--Cargo.toml1
-rw-r--r--README.md8
2 files changed, 9 insertions, 0 deletions
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,